Delete enrich policy API

Delete enrich policy API

New API reference

For the most up-to-date API details, refer to Enrich APIs.

Deletes an existing enrich policy and its enrich index.

  1. resp = client.enrich.delete_policy(
  2. name="my-policy",
  3. )
  4. print(resp)
  1. response = client.enrich.delete_policy(
  2. name: 'my-policy'
  3. )
  4. puts response
  1. const response = await client.enrich.deletePolicy({
  2. name: "my-policy",
  3. });
  4. console.log(response);
  1. DELETE /_enrich/policy/my-policy

Request

DELETE /_enrich/policy/<enrich-policy>

Prerequisites

To use enrich policies, you must have:

  • read index privileges for any indices used
  • The enrich_user built-in role

Description

Use the delete enrich policy API to delete an existing enrich policy and its enrich index.

You must remove an enrich policy from any in-use ingest pipelines before deletion. You cannot remove in-use enrich policies.

Path parameters

<enrich-policy>

(Required, string) Enrich policy to delete.