跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

Delete snapshot ​

Introduced 1.0

Deletes a snapshot from a repository.

Path parameters ​

ParameterData typeDescription
repositoryStringRepostory 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:

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

Example response ​

Upon success, the response returns the following JSON object:

json
{
  "acknowledged": true
}

NOTE

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