Delete a watch

DELETE /_watcher/watch/{id}

When the watch is removed, the document representing the watch in the .watches index is gone and it will never be run again.

Deleting a watch does not delete any watch execution records related to this watch from the watch history.

IMPORTANT: Deleting a watch must be done by using only this API. Do not delete the watch directly from the .watches index using the Elasticsearch delete document API When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the .watches index.

Path parameters

  • id string Required

    Watch ID

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
DELETE /_watcher/watch/{id}
curl \
 -X DELETE http://api.example.com/_watcher/watch/{id}
Response examples (200)
{
  "found": true,
  "_id": "string",
  "_version": 42.0
}