# Can't delete releases with API due to unknown deployments

**URL:** <https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056>\
**Category:** General Discussions\
**Tags:** api, management-api\
**Created:** [October 22, 2025, 9:37am UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056 "2025-10-22T09:37:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.amaudric](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@g.amaudric](https://hub.mender.io/u/g.amaudric)\
**Post date:** [October 22, 2025, 9:37am UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/1 "2025-10-22T09:37:35Z")

</div>

Hello,

I’m trying to delete releases on mender side via API call.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/b/b3bc78acd7fce0af397779b4c5cf6536ecd359d8.png)

I endup with a 409 error due to linked active deployments:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/2/26e7e4bbafef90fa9015aa77d0e56dbb62715997.png)

However on Mender UI (and API call) there is no deployments with these ids (note that I’m the admin of our Pro account so I should be able to see everything).

If I delete manually the release on the web page it works, so I’m guessing there is a bug on the server/db state of mender.

Could you provide some help or guidance on what to do?

---

<div class="post-metadata">

**Author:** ![g.amaudric](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@g.amaudric](https://hub.mender.io/u/g.amaudric)\
**Post date:** [October 22, 2025, 12:46pm UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/2 "2025-10-22T12:46:07Z")

</div>

After some investigation, I can call for the deployment individually but they are all in the status “finished”. I have not idea why mender doesn’t allow me to delete these releases…

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [October 22, 2025, 12:50pm UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/3 "2025-10-22T12:50:02Z")

</div>

Hi @g.amaudric , maybe the deployments have been created this morning? There was an incident that required a database fallback: [Hosted Mender Status - API issues with Mender Server](https://mender.statuspage.io/incidents/v85h4c0whdtc) so it’s possible you have data not coherent in the backend

---

<div class="post-metadata">

**Author:** ![g.amaudric](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@g.amaudric](https://hub.mender.io/u/g.amaudric)\
**Post date:** [October 22, 2025, 1:05pm UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/4 "2025-10-22T13:05:04Z")

</div>

Hello,

Thanks for the info, I didn’t see it…

Unfortunately, these releases/deployments are quite old (several months):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/6/675aa8ef013e5ee96324a61d5626c88a237f5dd3.png)

As you can see the status is “finished”, I even tried to abort the deployment to see if this change something but mender respond with:

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/4/460063d0c4b028c64b348efc6cf0db297747f43d.png)

So, a part of mender thinks this deployment is still active and another acknowledge the fact it’s finished…

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [October 23, 2025, 4:59am UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/5 "2025-10-23T04:59:42Z")

</div>

Hi @g.amaudric I see… It could be that there is something to fix in the backend, I think it’s better to open a support request

---

<div class="post-metadata">

**Author:** ![g.amaudric](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@g.amaudric](https://hub.mender.io/u/g.amaudric)\
**Post date:** [October 28, 2025, 9:19am UTC](https://hub.mender.io/t/cant-delete-releases-with-api-due-to-unknown-deployments/8056/6 "2025-10-28T09:19:42Z")

</div>

To whoever encounter this issue, this is really a bug on mender side.

> **[Jira](https://northerntech.atlassian.net/browse/MEN-8923)**
