Skip to content

Commit

Permalink
Docs: Provide example of deleting a repository
Browse files Browse the repository at this point in the history
Example of deleting a repository with explanation that snapshots themselves are left untouched.

Closes elastic#8172
  • Loading branch information
geekpete authored and clintongormley committed Oct 21, 2014
1 parent 0574aa1 commit 738e925
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/reference/modules/snapshots.asciidoc
Expand Up @@ -179,6 +179,15 @@ created the snapshotting process will be aborted and all files created as part o
cleaned. Therefore, the delete snapshot operation can be used to cancel long running snapshot operations that were
started by mistake.

A repository can be deleted using the following command:

[source,shell]
-----------------------------------
$ curl -XDELETE "localhost:9200/_snapshot/my_backup"
-----------------------------------

When a repository is deleted, Elasticsearch only removes the reference to the location where the repository is storing
the snapshots. The snapshots themselves are left untouched and in place.

[float]
=== Restore
Expand Down

0 comments on commit 738e925

Please sign in to comment.