# How to enable the deletion of .watches index dynamically?

**URL:** https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374
**Category:** Elasticsearch
**Created:** [November 13, 2017, 11:22am UTC](https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374 "2017-11-13T11:22:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sarra\_Bouhenni](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Sarra\_Bouhenni](https://discuss.elastic.co/u/Sarra_Bouhenni)
#### Post date: [November 13, 2017, 11:22am UTC](https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374/1 "2017-11-13T11:22:50Z")

</div>

Hello,  
I'm having this index with a red status from yesterday and since I didn't create any watches yet, I found that deleting it would be the best solution but when trying to do so, I get the following error:

```auto
{
  "error": "This endpoint is not supported for DELETE on .watches index.",
  "status": 400
} 

```

However, after some researches, I found this solution [[How to rebuild .watches](https://discuss.elastic.co/t/how-to-rebuild-watches/66762/3?u=sarra_bouhenni) ].  
How can I apply this configuration dynamically without restarting the cluster please?

---

<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: [November 13, 2017, 1:55pm UTC](https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374/2 "2017-11-13T13:55:31Z")

</div>

Hey,

this is just a safeguard to not accidentally delete the watches index, as this would divert with the in memory data structure. There is however a small workaround. **After** stopping watcher, you could just delete the index `.watche*` and this would work.

--Alex

---

<div class="post-metadata">

### Author: ![Sarra\_Bouhenni](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Sarra\_Bouhenni](https://discuss.elastic.co/u/Sarra_Bouhenni)
#### Post date: [November 13, 2017, 2:52pm UTC](https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374/3 "2017-11-13T14:52:37Z")

</div>

Thank you @spinscale, you saved me a lot of time!

---

<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: [December 11, 2017, 2:52pm UTC](https://discuss.elastic.co/t/how-to-enable-the-deletion-of-watches-index-dynamically/107374/4 "2017-12-11T14:52:44Z")

</div>

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