OpenSearch/docs/reference/ml/apis/delete-datafeed.asciidoc

61 lines
1.2 KiB
Plaintext
Raw Normal View History

[role="xpack"]
[testenv="platinum"]
[[ml-delete-datafeed]]
2018-12-20 13:23:28 -05:00
=== Delete {dfeeds} API
++++
2018-12-20 13:23:28 -05:00
<titleabbrev>Delete {dfeeds}</titleabbrev>
++++
2018-06-13 16:37:35 -04:00
Deletes an existing {dfeed}.
==== Request
`DELETE _ml/datafeeds/<feed_id>`
==== Description
NOTE: Unless the `force` parameter is used, the {dfeed} must be stopped before it can be deleted.
==== Path Parameters
`feed_id` (required)::
(string) Identifier for the {dfeed}
===== Query Parameters
`force`::
(boolean) Use to forcefully delete a started {dfeed}; this method is quicker than
stopping and deleting the {dfeed}.
===== Authorization
You must have `manage_ml`, or `manage` cluster privileges to use this API.
For more information, see {xpack-ref}/security-privileges.html[Security Privileges].
//<<privileges-list-cluster>>.
==== Examples
The following example deletes the `datafeed-total-requests` {dfeed}:
[source,js]
--------------------------------------------------
DELETE _ml/datafeeds/datafeed-total-requests
--------------------------------------------------
// CONSOLE
// TEST[skip:setup:server_metrics_datafeed]
When the {dfeed} is deleted, you receive the following results:
[source,js]
----
{
"acknowledged": true
}
----
// TESTRESPONSE