NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Delete datafeeds APIedit
Deletes an existing datafeed.
Requestedit
DELETE _xpack/ml/datafeeds/<feed_id>
Descriptionedit
Unless the force
parameter is used, the datafeed must be stopped before it can be deleted.
Path Parametersedit
-
feed_id
(required) - (string) Identifier for the datafeed
Query Parametersedit
-
force
- (boolean) Use to forcefully delete a started datafeed; this method is quicker than stopping and deleting the datafeed.
Authorizationedit
You must have manage_ml
, or manage
cluster privileges to use this API.
For more information, see Security privileges.
Examplesedit
The following example deletes the datafeed-total-requests
datafeed:
DELETE _xpack/ml/datafeeds/datafeed-total-requests
When the datafeed is deleted, you receive the following results:
{ "acknowledged": true }