Link Search Menu Expand Document Documentation Menu

You're viewing version 2.2 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

Delete snapshot

Deletes a snapshot from a repository.

Path parameters

Parameter Data Type Description
repository String Repostory that contains the snapshot.
snapshot String Snapshot to delete.

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

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 .