response = client.enrich.delete_policy( name: 'my-policy' ) puts response
To use enrich policies, you must have:
readindex privileges for any indices used
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.
- (Required, string) Enrich policy to delete.