Files
elasticsearch-js/docs/reference-ml-delete_filter.asciidoc
2024-12-05 14:46:52 -06:00

72 lines
3.9 KiB
Plaintext

[[reference-ml-delete_filter]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.ml.deleteFilter]]
=== client.ml.deleteFilter
Delete 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.
{ref}/ml-delete-filter.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(MlDeleteFilterRequest, options?): Promise<MlDeleteFilterResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface MlDeleteFilterRequest extends <<RequestBase>> {
filter_id: <<Id>>
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
type MlDeleteFilterResponse = <<AcknowledgedResponseBase>>
[pass]
++++
</pre>
++++