# Rollup: Deleted index but cannot stop/delete job

**URL:** <https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930>\
**Category:** Elasticsearch\
**Created:** [March 2, 2021, 9:44am UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930 "2021-03-02T09:44:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tg295](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tg295/32/84798_2.png) [@tg295](https://discuss.elastic.co/u/tg295)\
**Post date:** [March 2, 2021, 9:44am UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930/1 "2021-03-02T09:44:27Z")

</div>

I have a rollup job in state "Indexing". I cannot stop nor delete the job - stopping is not an option and deleting brings up the following error:

`400: Bad Request. Could not delete job [index-blah] because indexer state is [INDEXING]. Job must be [STOPPED] before deletion.`

It is rolling up a very large index and i suspect will be in state "Indexing" for a while longer - is there a way I can stop and thus delete the job without waiting for the state to change?

I also closed the destination rollup index attached to the job, in an effort to stop the job, however it seems ES has automatically reopened the index.

Thanks

Edit: To clarify I am currently managing things in the kibana UI

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 2, 2021, 11:31pm UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930/2 "2021-03-02T23:31:52Z")

</div>

Is it showing up in here [Task management API | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.11/tasks.html)?

---

<div class="post-metadata">

**Author:** ![tg295](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tg295/32/84798_2.png) [@tg295](https://discuss.elastic.co/u/tg295)\
**Post date:** [March 5, 2021, 12:43pm UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930/3 "2021-03-05T12:43:40Z")

</div>

I'm not sure because I do not know the task id, but there are 6 different tasks running with the action 'xpack/rollup/job[c]':

```auto
{'node': 'yDYlnjraQ2aW-QkTI8949Q', 'id': 3904765850, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1612970691601, 'running_time_in_nanos': 1977243999117043, 'cancellable': True, 'parent_task_id': 'cluster:57', 'headers': {}}
{'node': 'BwpPHJRBStSWcuRSWxWxUg', 'id': 455605, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1612963368232, 'running_time_in_nanos': 1984567368173168, 'cancellable': True, 'parent_task_id': 'cluster:46', 'headers': {}}
{'node': 'ntLOGD5bRxiDdWf9xFQ0aw', 'id': 2502739960, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1612970696113, 'running_time_in_nanos': 1977239486839133, 'cancellable': True, 'parent_task_id': 'cluster:55', 'headers': {}}
{'node': 'CsDNkTbwRBawXe4tgO_0hw', 'id': 1012259125, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1596101433891, 'running_time_in_nanos': 18846501709591311, 'cancellable': True, 'parent_task_id': 'cluster:18', 'headers': {}}
{'node': '9o4I7UVHS1qWMAO32Kl-1Q', 'id': 2281230910, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1612970691494, 'running_time_in_nanos': 1977244105622766, 'cancellable': True, 'parent_task_id': 'cluster:58', 'headers': {}}
{'node': 'vS0faI94R2upzYhNB7W5Hw', 'id': 2290442346, 'type': 'persistent', 'action': 'xpack/rollup/job[c]', 'start_time_in_millis': 1614080583291, 'running_time_in_nanos': 867352308867934, 'cancellable': True, 'parent_task_id': 'cluster:59', 'headers': {}}
6

```

There are only two rollup jobs running currently - one being the job in discussion, so I'm not sure if these tasks relate to different jobs or the jobs have been split up into multiple tasks?

---

<div class="post-metadata">

**Author:** ![tg295](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tg295/32/84798_2.png) [@tg295](https://discuss.elastic.co/u/tg295)\
**Post date:** [March 16, 2021, 10:48am UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930/4 "2021-03-16T10:48:06Z")

</div>

Any ideas?

---

<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:** [April 13, 2021, 10:48am UTC](https://discuss.elastic.co/t/rollup-deleted-index-but-cannot-stop-delete-job/265930/5 "2021-04-13T10:48:43Z")

</div>

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