原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ml-delete-datafeed.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/ml-delete-datafeed.html
本地英文版地址: ../en/ml-delete-datafeed.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
Delete datafeeds APIedit
Deletes an existing datafeed.
Requestedit
DELETE _ml/datafeeds/<feed_id>
Prerequisitesedit
-
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 parametersedit
-
<feed_id>
- (Required, string) A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.
Query parametersedit
-
force
- (Optional, boolean) Use to forcefully delete a started datafeed; this method is quicker than stopping and deleting the datafeed.
Examplesedit
DELETE _ml/datafeeds/datafeed-total-requests
When the datafeed is deleted, you receive the following results:
{ "acknowledged": true }