# Solution: Unable to delete rollup job due to spaces in job ID

**URL:** <https://discuss.elastic.co/t/solution-unable-to-delete-rollup-job-due-to-spaces-in-job-id/362032>\
**Category:** Kibana\
**Tags:** rollups\
**Created:** [June 25, 2024, 2:20pm UTC](https://discuss.elastic.co/t/solution-unable-to-delete-rollup-job-due-to-spaces-in-job-id/362032 "2024-06-25T14:20:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Kulkarni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_kulkarni/32/101037_2.png) [@Akshay\_Kulkarni](https://discuss.elastic.co/u/Akshay_Kulkarni)\
**Post date:** [June 25, 2024, 2:20pm UTC](https://discuss.elastic.co/t/solution-unable-to-delete-rollup-job-due-to-spaces-in-job-id/362032/1 "2024-06-25T14:20:30Z")

</div>

Hi,

Posting solution for below issue.

> [@Created a rollup job with a space in the ID and now i cannot stop it](https://discuss.elastic.co/t/created-a-rollup-job-with-a-space-in-the-id-and-now-i-cannot-stop-it/261187):
>
> Hello, fairly new to rollup jobs here and i have created one called "new rollup" to play around with now i want to delete it but i have to stop it first and when i try to stop it i get this error POST \_rollup/job/new rollup/\_stop { "error" : "Incorrect HTTP method for uri [/\_rollup/job/new?pretty=true] and method [POST], allowed: [PUT, DELETE, GET]", "status" : 405 } any guidance on how to stop this job? regards,

Solution:

1. Get all tasks.

# GET /\_tasks

1. Identify rollup task.

# ctrl + f \> rollup

1. Kill the roll up task by task id.

Note: Dont copy value from "id" field. Use entire Id mentioned after "tasks" field.  
e.g: "tasks": { "AlphaNumeric values": {

# POST /\_tasks/task\_id/\_cancel

1. Now verify running rollup jobs.

# GET /\_rollup/job/\_all

 ![20240625_193737_(1)](https://us1.discourse-cdn.com/elastic/original/3X/1/b/1b6720dab411e37fd5bd79cabaec324d7e08e700.jpeg)

Thanks,  
Akshay
