# Delete Bulk Ops

**URL:** https://community.cumulocity.com/t/delete-bulk-ops/7451
**Category:** Forum
**Tags:** cumulocity
**Created:** [April 28, 2023, 2:28pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451 "2023-04-28T14:28:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Melanie\_Monnereau](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Melanie\_Monnereau](https://community.cumulocity.com/u/Melanie_Monnereau)
#### Post date: [April 28, 2023, 2:28pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/1 "2023-04-28T14:28:46Z")

</div>

Is there a way to delete a bunch of bulk operations via the REST API?

Got a lot of bulk ops in the Device control page due to running some tests and i would like to remove all of them so i can provide a demo to the customer with a “clean” page.

Thanks

---

<div class="post-metadata">

### Author: ![Melanie\_Monnereau](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Melanie\_Monnereau](https://community.cumulocity.com/u/Melanie_Monnereau)
#### Post date: [April 28, 2023, 2:30pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/2 "2023-04-28T14:30:28Z")

</div>

Should have specified that when i try to delete a single bulk i m getting the below msg

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/f/4/f4842554e017066d569446cb491aef69e7991ce3.png)

---

<div class="post-metadata">

### Author: ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)
#### Post date: [April 28, 2023, 2:51pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/3 "2023-04-28T14:51:35Z")

</div>

You can delete operations between dates…

{{url}}/devicecontrol/operations?dateFrom={{dateFrom}}&dateTo={{dateTo}}

…but DELETE for bulkoperations as above isn’t possible.

---

<div class="post-metadata">

### Author: ![Philipp\_Emmel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/philipp_emmel/32/19455_2.png) [@Philipp\_Emmel](https://community.cumulocity.com/u/Philipp_Emmel)
#### Post date: [April 28, 2023, 2:53pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/4 "2023-04-28T14:53:13Z")

</div>

Deletion of bulk operations is only supported for bulk operations in status ACTIVE which applies to bulk operations before their scheduling date. The same DELETE call can also be used to cancel the further rollout of a bulk operation in status IN\_PROGRESS.

You can configure retention rules to clean up old bulk operations.

---

<div class="post-metadata">

### Author: ![Melanie\_Monnereau](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Melanie\_Monnereau](https://community.cumulocity.com/u/Melanie_Monnereau)
#### Post date: [April 28, 2023, 3:25pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/5 "2023-04-28T15:25:39Z")

</div>

Thank you Philipp, i have created a rentetion rule for bulk ops older than 1 day old. Let s see what it looks like tomorrow!

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [October 25, 2023, 3:26pm UTC](https://community.cumulocity.com/t/delete-bulk-ops/7451/6 "2023-10-25T15:26:06Z")

</div>

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