Delete snapshot

Introduced 1.0

Deletes a snapshot from a repository.

Path and HTTP method

  1. DELETE _snapshot/<repository>/<snapshot>

Path parameters

ParameterData typeDescription
repositoryStringRepository that contains the snapshot.
snapshotStringSnapshot to delete.

Example request

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

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

copy

Example response

Upon success, the response returns the following JSON object:

  1. {
  2. "acknowledged": true
  3. }

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