Delete snapshot repositories Generally available; Added in 0.0.0

DELETE /_snapshot/{repository}

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

Required authorization

  • Cluster privileges: manage

Path parameters

  • repository string | array[string] Required

    Name of the snapshot repository to unregister. Wildcard (*) patterns are supported.

Query parameters

  • master_timeout string

    Explicit operation timeout for connection to master node

    Values are -1 or 0.

  • timeout string

    Explicit operation timeout

    Values are -1 or 0.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

DELETE /_snapshot/{repository}
DELETE /_snapshot/my_repository
resp = client.snapshot.delete_repository(
    name="my_repository",
)
const response = await client.snapshot.deleteRepository({
  name: "my_repository",
});
response = client.snapshot.delete_repository(
  repository: "my_repository"
)
$resp = $client->snapshot()->deleteRepository([
    "repository" => "my_repository",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_snapshot/my_repository"