update curl post example (#4559)

pull/4579/head
Christopher Moyer 4 years ago committed by GitHub
parent 0b40cc953d
commit 7fdece94e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      docs/sources/operations/storage/logs-deletion.md

@ -41,10 +41,11 @@ Query parameters:
A 204 response indicates success.
URL encode the `match[]` parameter. This sample form of a cURL command URL encodes `match[]={foo="bar"}`:
```
curl -X POST \
'<compactor_addr>/loki/api/admin/delete?match%5B%5D=%7Bfoo=%22bar%22%7D&start=1591616227&end=1591619692' \
-H 'x-scope-orgid: <tenant-id>'
curl -g -X POST \
'http://127.0.0.1:3100/loki/api/admin/delete?match[]={foo="bar"}&start=1591616227&end=1591619692' \
-H 'x-scope-orgid: 1'
```
### List delete requests

Loading…
Cancel
Save