Docs: Provide example of deleting a repository

Example of deleting a repository with explanation that snapshots themselves are left untouched.

Closes #8172
This commit is contained in:
Peter Dyson 2014-10-21 11:04:34 +10:00 committed by Clinton Gormley
parent c31a783930
commit b984cb771f
1 changed files with 9 additions and 0 deletions

View File

@ -191,6 +191,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