IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete datafeeds API
editDelete datafeeds API
editDeletes an existing datafeed.
Request
editDELETE _ml/datafeeds/<feed_id>
Prerequisites
edit-
Unless you use the
force
parameter, you must stop the datafeed before you can delete it. -
If the Elasticsearch security features are enabled, you must have
manage_ml
ormanage
cluster privileges to use this API. See Security privileges.
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
editThe 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 }