younifyd
Menu

Delete snapshots

Delete snapshots

DELETE/_snapshot/{repository}/{snapshot}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Delete snapshots action (under snapshot).
  3. Fill in the fields below, then reference the result from later steps as {{deleteSnapshots.response.data}}.

Request

Path parameters

repositorystringrequired

The name of the repository to delete a snapshot from.

snapshotoneOfrequired

A comma-separated list of snapshot names to delete. It also accepts wildcards (`*`).

Query parameters

master_timeoutoneOf

The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to `-1`.

wait_for_completionboolean

If `true`, the request returns a response when the matching snapshots are all deleted. If `false`, the request returns a response as soon as the deletes are scheduled.

Response

Returns 200 with an object. Read it in later steps with {{deleteSnapshots.response.data.<field>}}.

acknowledgedboolean

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

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Delete snapshots — Elasticsearch — Documentation