mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
* Remove `es-test-dir` book-scoped variable * Remove `plugins-examples-dir` book-scoped variable * Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables - In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed. - In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path - In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem * Replace `es-repo-dir` with `es-ref-dir` * Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
55 lines
1.2 KiB
Text
55 lines
1.2 KiB
Text
[role="xpack"]
|
|
[[ml-delete-datafeed]]
|
|
= Delete {dfeeds} API
|
|
|
|
[subs="attributes"]
|
|
++++
|
|
<titleabbrev>Delete {dfeeds}</titleabbrev>
|
|
++++
|
|
|
|
Deletes an existing {dfeed}.
|
|
|
|
[[ml-delete-datafeed-request]]
|
|
== {api-request-title}
|
|
|
|
`DELETE _ml/datafeeds/<feed_id>`
|
|
|
|
[[ml-delete-datafeed-prereqs]]
|
|
== {api-prereq-title}
|
|
|
|
* Requires the `manage_ml` cluster privilege. This privilege is included in the
|
|
`machine_learning_admin` built-in role.
|
|
* Unless you use the `force` parameter, you must stop the {dfeed} before you
|
|
can delete it.
|
|
|
|
[[ml-delete-datafeed-path-parms]]
|
|
== {api-path-parms-title}
|
|
|
|
`<feed_id>`::
|
|
(Required, string)
|
|
include::{es-ref-dir}/ml/ml-shared.asciidoc[tag=datafeed-id]
|
|
|
|
[[ml-delete-datafeed-query-parms]]
|
|
== {api-query-parms-title}
|
|
|
|
`force`::
|
|
(Optional, Boolean) Use to forcefully delete a started {dfeed}; this method is
|
|
quicker than stopping and deleting the {dfeed}.
|
|
|
|
[[ml-delete-datafeed-example]]
|
|
== {api-examples-title}
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
DELETE _ml/datafeeds/datafeed-total-requests
|
|
--------------------------------------------------
|
|
// TEST[skip:setup:server_metrics_datafeed]
|
|
|
|
When the {dfeed} is deleted, you receive the following results:
|
|
|
|
[source,console-result]
|
|
----
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
----
|