Clean up the snapshot repository
Added in 7.4.0
Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots.
Path parameters
-
repository
string Required Snapshot repository to clean up.
Query parameters
-
master_timeout
string Period to wait for a connection to the master node.
-
timeout
string Period to wait for a response.
POST
/_snapshot/{repository}/_cleanup
curl \
--request POST 'http://api.example.com/_snapshot/{repository}/_cleanup' \
--header "Authorization: $API_KEY"
Response examples (200)
A successful response from `POST /_snapshot/my_repository/_cleanup`.
{
"results": {
"deleted_bytes": 20,
"deleted_blobs": 5
}
}