The Delete button is enabled for auto-generated groups, including Admin/Moderator/Staff and trust level groups, potentially causing concern. itsbhanusharma and hawm questioned the safety of deleting these groups. After reproduction, tshenry confirmed that no harm would occur, but suggested suppressing the delete button for automatic groups. jomaxro proposed alternative solutions, such as greying out the button or including a note, to avoid confusion. The issue has been assigned for cleanup and a fix has been implemented by Roman_Rizzi through pull request #12493, making the group’s delete button behave similarly to categories.
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.
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?