Delete filters APIedit

Deletes a filter.


DELETE _ml/filters/<filter_id>


Requires the manage_ml cluster privilege. This privilege is included in the machine_learning_admin built-in role.


This API deletes a filter. If an anomaly detection job references the filter, you cannot delete the filter. You must update or delete the job before you can delete the filter. For more information, see Custom rules.

Path parametersedit

(Required, string) A string that uniquely identifies a filter.


response =
  filter_id: 'safe_domains'
puts response
DELETE _ml/filters/safe_domains

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

  "acknowledged": true