Delete datafeeds API

edit

Deletes an existing datafeed.

Request

edit

DELETE _ml/datafeeds/<feed_id>

Prerequisites

edit
  • If Elasticsearch security features are enabled, you must have manage_ml or manage cluster privileges to use this API. For more information, see Security privileges.

Description

edit

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

Path parameters

edit
feed_id
(Required, string) Identifier for the datafeed.

Query parameters

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

Examples

edit

The following example deletes the datafeed-total-requests datafeed:

DELETE _ml/datafeeds/datafeed-total-requests

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

{
  "acknowledged": true
}