# Deactivate watch API

**URL:** <https://discuss.elastic.co/t/deactivate-watch-api/210689>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 5, 2019, 11:36am UTC](https://discuss.elastic.co/t/deactivate-watch-api/210689 "2019-12-05T11:36:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurdit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurdit/32/54994_2.png) [@kurdit](https://discuss.elastic.co/u/kurdit)\
**Post date:** [December 5, 2019, 11:36am UTC](https://discuss.elastic.co/t/deactivate-watch-api/210689/1 "2019-12-05T11:36:39Z")

</div>

Hello! The [https://www.elastic.co/guide/en/elasticsearch/reference/7.4/watcher-api-deactivate-watch.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/watcher-api-deactivate-watch.html) process of deactivating the watch via CURL is described here but an example is provided for only one watcher

and if I have several watchers with names:

- watcher\_0
- watcher\_1
- watcher\_2
- watcher\_test\_0
- watcher\_RCA\_test

How can I deactivate them all with one command?

I tried to specify watcher\_ \* instead of watcher ID, but this did not help  
PUT _watcher/watch/watcher_ \*/\_deactivate

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 6, 2019, 12:09pm UTC](https://discuss.elastic.co/t/deactivate-watch-api/210689/2 "2019-12-06T12:09:44Z")

</div>

each watch needs to be deactivated one-by-one, there is no bulk API.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2020, 12:09pm UTC](https://discuss.elastic.co/t/deactivate-watch-api/210689/3 "2020-01-03T12:09:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
