Delete snapshot
Introduced 1.0
Deletes a snapshot from a repository.
To learn more about snapshots, see Snapshots.
To view a list of your repositories, see cat repositories.
To view a list of your snapshots, see cat snapshots.
Path and HTTP method
DELETE _snapshot/<repository>/<snapshot>
Path parameters
Parameter | Data type | Description |
---|---|---|
repository | String | Repository 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
copy
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.
当前内容版权归 OpenSearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 OpenSearch .