Spec-Zone.ru › Elasticsearch 8
›Elasticsearch Guide [8.17] ›REST APIs ›Enrich APIs

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.

resp = client.enrich.delete_policy(
    name="my-policy",
)
print(resp)
response = client.enrich.delete_policy(
  name: 'my-policy'
)
puts response
const response = await client.enrich.deletePolicy({
  name: "my-policy",
});
console.log(response);
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.

© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-enrich-policy-api.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API