# Not able to stop the tasks in devtool (Kibana)

**URL:** <https://discuss.elastic.co/t/not-able-to-stop-the-tasks-in-devtool-kibana/333857>\
**Category:** Elasticsearch\
**Created:** [May 19, 2023, 9:58am UTC](https://discuss.elastic.co/t/not-able-to-stop-the-tasks-in-devtool-kibana/333857 "2023-05-19T09:58:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjeevtomar](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sanjeevtomar](https://discuss.elastic.co/u/sanjeevtomar)\
**Post date:** [May 19, 2023, 9:58am UTC](https://discuss.elastic.co/t/not-able-to-stop-the-tasks-in-devtool-kibana/333857/1 "2023-05-19T09:58:05Z")

</div>

1.Firstly, "delete by query" was run. it exhausted 100 % of disk space,

1. then I tried POST /\_forcemerge after adding more disk space but this space is also getting consumed rapidly

2. **can I cancel the tasks which are running tasks as the below given command is not able to kill tasks . It says "not cancellable tasks"**  
\*\* POST /\_tasks/\<task\_id\>/\_cancel\*\*

3. **No task is completed and resource crunch (disk space) may again. How can I know the running task's estimated remaining time or size ??**

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [May 24, 2023, 2:36pm UTC](https://discuss.elastic.co/t/not-able-to-stop-the-tasks-in-devtool-kibana/333857/2 "2023-05-24T14:36:43Z")

</div>

Hi @sanjeevtomar,

Sorry to hear you are having troubles. Delete by queries can be expenses and should be used cautiously. Having said that you should be able to cancel one. Going forward if you must use them I'd recommend [throttling](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html) them.

---

<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:** [June 21, 2023, 2:36pm UTC](https://discuss.elastic.co/t/not-able-to-stop-the-tasks-in-devtool-kibana/333857/3 "2023-06-21T14:36:56Z")

</div>

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