A newer version is available. For the latest information, see the
current release documentation.
Delete autoscaling policy API
editDelete autoscaling policy API
editThis feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
Delete autoscaling policy.
Request
editDELETE /_autoscaling/policy/<name>
Prerequisites
edit-
If the Elasticsearch security features are enabled, you must have the
manage_autoscaling
cluster privilege to use this API. - If the operator privileges feature is enabled, only operator users can use this API.
Description
editThis API deletes an autoscaling policy with the provided name.
Examples
editThis example deletes an autoscaling policy named my_autoscaling_policy
.
DELETE /_autoscaling/policy/my_autoscaling_policy
The API returns the following result:
{ "acknowledged": true }
This example deletes all autoscaling policies.
DELETE /_autoscaling/policy/*
The API returns the following result:
{ "acknowledged": true }