Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.25 KB

delete-snapshot.md

File metadata and controls

47 lines (33 loc) · 1.25 KB
layout title parent nav_order
default
Delete Snapshot
Snapshot APIs
7

Delete snapshot

Introduced 1.0 {: .label .label-purple }

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

{% include copy-curl.html %}

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. {: .note}