# Delete button is enabled for auto-generated groups

**URL:** https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095
**Category:** UX
**Created:** [August 17, 2020, 6:24am UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095 "2020-08-17T06:24:54Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [August 17, 2020, 6:24am UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/1 "2020-08-17T06:24:54Z")

</div>

The default Admin/Moderator/Staff groups have Delete button enabled and visible. As far as I know Discourse didn’t allow for deleting these groups. Potentially a bug?

I haven’t dared to click the delete button because I don’t want to screw up the functionality. The delete button is also visible on trust level groups.

 ![IMG_20200817_115339](https://global.discourse-cdn.com/meta/original/3X/2/f/2fc0847da526ce7705d1c51a3a92a0644b29020d.jpeg) ![IMG_20200817_115319](https://global.discourse-cdn.com/meta/original/3X/a/0/a0d7334264d48d775d737ae35179a5642bb038e0.jpeg)

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [August 17, 2020, 7:25am UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/2 "2020-08-17T07:25:32Z")

</div>

A post was split to a new topic: [Start Upgrading button becomes active during docker-manager upgrades](https://meta.discourse.org/t/start-upgrading-button-becomes-active-during-docker-manager-upgrades/161102)

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [March 11, 2021, 10:32am UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/3 "2021-03-11T10:32:49Z")

</div>

I have the same question. Is staff or TL group are safe to be delete? If not that why it gona happen.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 19, 2021, 7:27pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/4 "2021-03-19T19:27:54Z")

</div>

Can we repro this @tshenry ?

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [March 19, 2021, 7:59pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/5 "2021-03-19T19:59:14Z")

</div>

I can repro, but thankfully it looks like nothing bad will happen:

I do think it would probably be ideal to suppress the delete button from automatic groups entirely.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 19, 2021, 8:02pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/6 "2021-03-19T20:02:24Z")

</div>

Glad to see we display a clear message when you try deleting. I wonder though if removing the button will cause its own confusion. “Why do some groups not have the delete button?”

I’m not opposed to hiding the button, but would we want to instead grey it out like we do the delete button on the category edit page? Or include text noting that automatic groups can’t be deleted?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 19, 2021, 9:46pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/7 "2021-03-19T21:46:15Z")

</div>

Sure we should probably assign this next week @eviltrout for some form of cleanup.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [March 22, 2021, 5:18pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/8 "2021-03-22T17:18:40Z")

</div>

@Roman looks like we could use a Guardian method here for `can_delete_group` or similar? Can you handle it?

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [March 25, 2021, 2:48pm UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/10 "2021-03-25T14:48:27Z")

</div>

The group’s delete button now behaves the same way as the categories one. Should be fixed by:

[https://github.com/discourse/discourse/pull/12493](https://github.com/discourse/discourse/pull/12493)

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [March 26, 2021, 11:00am UTC](https://meta.discourse.org/t/delete-button-is-enabled-for-auto-generated-groups/161095/11 "2021-03-26T11:00:10Z")

</div>

This topic was automatically closed after 20 hours. New replies are no longer allowed.
