# Unable to deprecate or remove role in my namespace

**URL:** <https://forum.ansible.com/t/unable-to-deprecate-or-remove-role-in-my-namespace/4613>\
**Category:** Project Discussions\
**Tags:** ansible-galaxy, galaxy-ng\
**Created:** [March 28, 2024, 1:53pm UTC](https://forum.ansible.com/t/unable-to-deprecate-or-remove-role-in-my-namespace/4613 "2024-03-28T13:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stdevel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stdevel/32/279_2.png) [@stdevel](https://forum.ansible.com/u/stdevel)\
**Post date:** [March 28, 2024, 1:53pm UTC](https://forum.ansible.com/t/unable-to-deprecate-or-remove-role-in-my-namespace/4613/1 "2024-03-28T13:53:17Z")

</div>

Hi everybody,

I’m trying to deprecate or remove a role from my namespace (stdevel.landscape) as I developed a collection for that use-case. I understand that it is easily possible to deprecate or remove collections:

 ![grafik](https://us1.discourse-cdn.com/ansible/original/2X/3/3cb8172bf3901a2d16f3a934f697c3aa9e8b6ddb.jpeg)

Anyhow, this option isn’t available for roles:

 ![grafik](https://us1.discourse-cdn.com/ansible/original/2X/d/d57081dce2cece247828bef7afba7a56e278d1b5.png)

What am I missing here? What does the process for deprecating a role look like?

Thanks a lot in advance!

**EDIT**

@werker pointed out that the workaround might be to use the CLI instead.

This command worked for me:

```command
$ ansible-galaxy role delete <user> <repository-name> --token <api_token>

```

Unfortunately, it is not possible to deprecate a role - it is required to completely remove it.

Is it planned to have a button for this in the UI?
