# Issue in Deleting deprecated collection

**URL:** <https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [June 24, 2026, 6:11am UTC](https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974 "2026-06-24T06:11:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dayadevi\_Karunanidhi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dayadevi_karunanidhi/32/10866_2.png) [@Dayadevi\_Karunanidhi](https://forum.ansible.com/u/Dayadevi_Karunanidhi)\
**Post date:** [June 24, 2026, 6:11am UTC](https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974/1 "2026-06-24T06:11:39Z")

</div>

I tried to delete the deprecated collections… [Ansible Galaxy](https://galaxy.ansible.com/ui/namespaces/gigamon/)  
node\_management and port\_management are the two deprecated collections

- Originally there were three
- I appear to be able to delete any one of the three
- When I delete a second collection, the first deleted one reappears
- I can try different combinations, always end up with two deprecated collections remaining

Could anyone pls help here?

---

<div class="post-metadata">

**Author:** ![dbrennand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dbrennand/32/7830_2.png) [@dbrennand](https://forum.ansible.com/u/dbrennand)\
**Post date:** [June 24, 2026, 7:51am UTC](https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974/2 "2026-06-24T07:51:51Z")

</div>

Hi @Dayadevi_Karunanidhi

Did you attempt to delete the collections via the Galaxy UI?

You could try using the Galaxy REST API: [API V3 - Galaxy NG](https://docs.ansible.com/projects/galaxy-ng/en/latest/community/api_v3.html?h=delete#delete-a-collection-or-a-specific-version)

```auto
curl -X 'DELETE' \
'https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/mynamespace/mycollection/' \
  -H 'accept: application/json' \
  -H 'Authorization: Token YOURTOKEN'

```

Note that this would delete all versions of that specified collection in `mynamespace/mycollection`.

---

<div class="post-metadata">

**Author:** ![Dayadevi\_Karunanidhi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dayadevi_karunanidhi/32/10866_2.png) [@Dayadevi\_Karunanidhi](https://forum.ansible.com/u/Dayadevi_Karunanidhi)\
**Post date:** [June 24, 2026, 8:27am UTC](https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974/3 "2026-06-24T08:27:03Z")

</div>

Sure,Thanks @dbrennand .. Will try this and get back

---

<div class="post-metadata">

**Author:** ![dbrennand](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dbrennand/32/7830_2.png) [@dbrennand](https://forum.ansible.com/u/dbrennand)\
**Post date:** [June 24, 2026, 10:08am UTC](https://forum.ansible.com/t/issue-in-deleting-deprecated-collection/45974/4 "2026-06-24T10:08:19Z")

</div>

To get the Galaxy token, in Galaxy go to Collections \> API token and use that in place of `YOURTOKEN` in the command above 🙂
