Delete Datafeeds

The delete datafeed API enables you to delete an existing datafeed.

Request

DELETE _xpack/ml/datafeeds/<feed_id>

Description

Note

Unless the force parameter is used, the datafeed must be stopped before it can be deleted.

Path Parameters

feed_id (required)
(string) Identifier for the datafeed

Query Parameters

force
(boolean) Use to forcefully delete a started datafeed; this method is quicker than stopping and deleting the datafeed.

Authorization

You must have manage_ml, or manage cluster privileges to use this API. For more information, see Security Privileges.

Examples

The following example deletes the datafeed-it-ops datafeed:

DELETE _xpack/ml/datafeeds/datafeed-it-ops

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

{
  "acknowledged": true
}