| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | [[delete-snapshots]]== Delete a snapshot////[source,console]-----------------------------------PUT /_snapshot/my_backup{  "type": "fs",  "settings": {    "location": "my_backup_location"  }}PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=truePUT /_snapshot/my_backup/snapshot_2?wait_for_completion=truePUT /_snapshot/my_backup/snapshot_3?wait_for_completion=true-----------------------------------// TESTSETUP////Use the <<delete-snapshot-api,delete snapshot API>> to delete a snapshotfrom the repository:[source,console]----DELETE /_snapshot/my_backup/snapshot_1----When a snapshot is deleted from a repository, {es} deletes all files associated with thesnapshot that are not in-use by other snapshots.If the delete snapshot operation starts while the snapshot is beingcreated, the snapshot process halts and all files created as part of the snapshotting process areremoved. Use the <<delete-snapshot-api,Delete snapshot API>> to cancel long running snapshot operations that werestarted by mistake.To delete multiple snapshots from a repository, separate snapshot names by commas or use wildcards:[source,console]-----------------------------------DELETE /_snapshot/my_backup/snapshot_2,snapshot_3DELETE /_snapshot/my_backup/snap*-----------------------------------
 |