Delete snapshots
- DELETE /_snapshot/{repository}/{snapshot}
- Cluster privileges:
manage
Path Parameters
-
repositorystring Namerequired -
The name of the repository to delete a snapshot from.
-
snapshotstring Namerequired -
A comma-separated list of snapshot names to delete. It also accepts wildcards (
*).
Query Parameters
-
master_timeoutstring Duration · default: 30s The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to
-1.-
wait_for_completionboolean · default: true If
true, the request returns a response when the matching snapshots are all deleted. Iffalse, the request returns a response as soon as the deletes are scheduled.
Response
application/json
-
acknowledgedbooleanrequired -
For a successful response, this value is always true. On failure, an exception is returned instead.