Delete filter APIedit

Deletes a filter.

Requestedit

DELETE _ml/filters/<filter_id>

Prerequisitesedit

  • If the Elasticsearch security features are enabled, you must have manage_ml or manage cluster privileges to use this API. See Security privileges.

Descriptionedit

This API deletes a filter. If a machine learning job references the filter, you cannot delete the filter. You must update or delete the job before you can delete the filter.

Path parametersedit

<filter_id>
(Required, string) Identifier for the filter.

Examplesedit

The following example deletes the safe_domains filter:

DELETE _ml/filters/safe_domains

When the filter is deleted, you receive the following results:

{
  "acknowledged": true
}