Delete snapshot lifecycle policy APIedit

Deletes an existing snapshot lifecycle policy.


DELETE /_slm/policy/<snapshot-lifecycle-policy-id>


If the Elasticsearch security features are enabled, you must have the manage_slm cluster privilege to use this API. For more information, see Security privileges.


Deletes the specified lifecycle policy definition. This prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.

Path parametersedit

(Required, string) ID of the snapshot lifecycle policy to delete.


response = client.slm.delete_lifecycle(
  policy_id: 'daily-snapshots'
puts response
DELETE /_slm/policy/daily-snapshots