Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 1d8722f

Browse files
authored
Merge pull request #1122 from grafana/doc-cache-delete
document cache delete
2 parents 3ff92ed + 60b0f1f commit 1d8722f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/http-api.md

+19
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,25 @@ curl -s http://localhost:6060/priority | jsonpp
198198
}
199199
}
200200
]
201+
202+
## Cache delete
203+
204+
```
205+
GET /ccache/delete
206+
POST /ccache/delete
207+
```
208+
209+
* `X-Org-Id`: required
210+
* patterns: one or more query (glob) patterns. Use `**` to mean "all data" (full reset)
211+
* expr: tag expressions
212+
* propagate: whether to propagate to other cluster nodes. true/false
213+
214+
Remove chunks from the cache for matching series, or wipe the entire cache
215+
216+
#### Example
217+
218+
```bash
219+
curl -v -X POST -d '{"propagate": true, "orgId": 1, "patterns": ["**"]}' -H 'Content-Type: application/json' http://localhost:6060/ccache/delete
201220
```
202221

203222
## Misc

0 commit comments

Comments
 (0)