Link Search Menu Expand Document Documentation Menu

Delete snapshot

Image for: Delete snapshot

Introduced 1.0

Deletes a snapshot from a repository.

Deleting a snapshot that is in progress stops the snapshot operation and deletes the partially created snapshot.

Path and HTTP method

Image for: Path and HTTP method
DELETE _snapshot/<repository>/<snapshot>

Path parameters

Image for: Path parameters
Parameter Data type Description
repository String Repository that contains the snapshot.
snapshot String Snapshot to delete.

Example request

Image for: Example request

The following request deletes a snapshot called my-first-snapshot from the my-opensearch-repo repository:

DELETE _snapshot/my-opensearch-repo/my-first-snapshot

Example response

Image for: Example response

Upon success, the response returns the following JSON object:

{
  "acknowledged": true
}

To verify that the snapshot was deleted, use the Get snapshot API, passing the snapshot name as the snapshot path parameter.

350 characters left

Have a question? .

Want to contribute? or .