This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Delete snapshot lifecycle policy API
editDelete snapshot lifecycle policy API
editDeletes an existing snapshot lifecycle policy.
Request
editDELETE /_slm/policy/<snapshot-lifecycle-policy-id>
Prerequisites
editIf the Elasticsearch security features are enabled, you must have the manage_slm
cluster privilege to use this API. For more information, see
Security privileges.
Description
editDeletes 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 parameters
edit-
<policy-id>
- (Required, string) ID of the snapshot lifecycle policy to delete.
Examples
editresp = client.slm.delete_lifecycle( policy_id="daily-snapshots", ) print(resp)
response = client.slm.delete_lifecycle( policy_id: 'daily-snapshots' ) puts response
const response = await client.slm.deleteLifecycle({ policy_id: "daily-snapshots", }); console.log(response);
DELETE /_slm/policy/daily-snapshots