The name of the repository to delete a snapshot from.
A comma-separated list of snapshot names to delete.
It also accepts wildcards (*).
DELETE /_snapshot/my_repository/snapshot_2,snapshot_3
resp = client.snapshot.delete(
repository="my_repository",
snapshot="snapshot_2,snapshot_3",
)
const response = await client.snapshot.delete({
repository: "my_repository",
snapshot: "snapshot_2,snapshot_3",
});
response = client.snapshot.delete(
repository: "my_repository",
snapshot: "snapshot_2,snapshot_3"
)
$resp = $client->snapshot()->delete([
"repository" => "my_repository",
"snapshot" => "snapshot_2,snapshot_3",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_snapshot/my_repository/snapshot_2,snapshot_3"
client.snapshot().delete(d -> d
.repository("my_repository")
.snapshot("snapshot_2,snapshot_3")
);
{
"acknowledged" : true
}