Delete autoscaling policy API

Delete autoscaling policy API

This 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

  1. DELETE /_autoscaling/policy/<name>

Prerequisites

Description

This API deletes an autoscaling policy with the provided name.

Examples

This example deletes an autoscaling policy named my_autoscaling_policy.

  1. DELETE /_autoscaling/policy/my_autoscaling_policy

The API returns the following result:

  1. {
  2. "acknowledged": true
  3. }

This example deletes all autoscaling policies.

  1. DELETE /_autoscaling/policy/*

The API returns the following result:

  1. {
  2. "acknowledged": true
  3. }