Path parameters
-
repository
string Required The name of the repository to delete a snapshot from.
-
snapshot
string Required A comma-separated list of snapshot names to delete. It also accepts wildcards (
*
).
Query parameters
-
master_timeout
string 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
.
DELETE
/_snapshot/{repository}/{snapshot}
curl \
--request DELETE 'http://api.example.com/_snapshot/{repository}/{snapshot}' \
--header "Authorization: $API_KEY"
Response examples (200)
A successful response from `DELETE /_snapshot/my_repository/snapshot_2,snapshot_3`. The request deletes `snapshot_2` and `snapshot_3` from the repository named `my_repository`.
{
"acknowledged" : true
}