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
-
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 \
-X POST http://api.example.com/_snapshot/{repository}/_cleanup
Response examples (200)
{
"results": {
"deleted_blobs": 42.0,
"deleted_bytes": 42.0
}
}