Deleting/disabling ansible galaxy collection

1,318 views
Skip to first unread message

Clemson C

unread,
Jul 31, 2023, 10:15:14 AM7/31/23
to Ansible Project
I have posted uploaded an ansible collection as a test, how do i delete it or disable it from public access?

Pierre TOURON

unread,
Aug 7, 2023, 1:44:13 PM8/7/23
to Ansible Project
Hi,

Depends on where you pushed it I guess. 
If that's on Galaxy, I never published anything there myself, but surely there is an option to remove / change content visibility, in 'my imports' page perhaps ?
From the screenshot on this instruction page, it seems doable in 'My contents' page.

If on git, you could always delete repository or change visibility, though the mean to do it depends on your hosting platform.

Clemson C

unread,
Aug 7, 2023, 10:29:12 PM8/7/23
to Ansible Project
Unfortunately my galaxy collection does not have a delete function it seems, only deprecate. Is there somewhere where I can request my collection to be deleted?
ansiblegalaxy.png

Pierre TOURON

unread,
Aug 8, 2023, 11:35:53 AM8/8/23
to Ansible Project
Ah bummer :(

Going through documentation, it seems to me you can only delete roles, not collections. You can still deprecate one, which should hide it from search results (can still be bypassed though). Perhaps you will be able to delete it after that ?
You may also try to replace it with an empty one by publishing over it ?

Also, here is a documentation about migrating content; you might find something useful there.

Alas, I don't know anyone you could contact for your request, but maybe try to ask galaxy project contributors (the help popup on Galaxy web page shows a shorter maintainer list), or open an issue ? Here is one you can jump on : https://github.com/ansible/galaxy/issues/3034, and I can already see other similar request in there :/.

Matt Martz

unread,
Aug 8, 2023, 11:40:45 AM8/8/23
to ansible...@googlegroups.com
Collection artifacts are meant to be immutable, and cannot be deleted in the current version of community galaxy.  You could file an issue at https://github.com/ansible/galaxy but since there is no means to delete it directly within the app, I believe the only way is for the admins to manipulate the DB directly.  I've seen other issues logged for this, but don't believe any of them have been completed.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0b66158a-f2ac-462c-8831-f322a15f97f1n%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages