# Impossibile eliminare un utente che fa parte di un gruppo

**URL:** <https://meta.discourse.org/t/cannot-delete-user-who-is-in-a-group/78799>\
**Category:** Bug\
**Created:** [23 Gennaio 2018, 8:37pm UTC](https://meta.discourse.org/t/cannot-delete-user-who-is-in-a-group/78799 "2018-01-23T20:37:14Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [14 Marzo 2018, 7:27pm UTC](https://meta.discourse.org/t/cannot-delete-user-who-is-in-a-group/78799/14 "2018-03-14T19:27:09Z")

</div>

Pretty sure I fixed this today. It happens when one of the groups the user belongs to grants a trust level.

[https://github.com/discourse/discourse/commit/5ce817766253e91b77273dd15d443d739387b5fa](https://github.com/discourse/discourse/commit/5ce817766253e91b77273dd15d443d739387b5fa)

The order of `dependent: destroy` matters. 💡

---

_[View the full topic](https://meta.discourse.org/t/cannot-delete-user-who-is-in-a-group/78799)._
