# Unable to remove member from group \[v1.3.0.beta2\]

**URL:** https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928
**Category:** Bug
**Created:** [March 3, 2015, 4:36pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928 "2015-03-03T16:36:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![badevguru](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/badevguru/32/115121_2.png) [@badevguru](https://meta.discourse.org/u/badevguru)
#### Post date: [March 3, 2015, 4:36pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/1 "2015-03-03T16:36:53Z")

</div>

I have tried to delete several different accounts from this group and they don’t delete. Any ideas?

![](https://global.discourse-cdn.com/meta/original/3X/2/5/25f6c0c6b6c9dc51a95807580fbe22fc4ca96dc3.gif)

Edit: This is a group that I recently renamed.

Edit2: I should have looked at the logs as well. This is the error that _seems_ to correspond to dropping the user from the group:

```plaintext
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_group_users_on_group_id_and_user_id"
DETAIL: Key (group_id, user_id)=(42, 5681) already exists.
: INSERT INTO "group_users" ("created_at", "group_id", "updated_at", "user_id") VALUES ('2015-03-03 18:29:47.593535', 42, '2015-03-03 18:29:47.593535', 5681) RETURNING "id"

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 3, 2015, 5:46pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/2 "2015-03-03T17:46:22Z")

</div>

The staff group is special, you can’t remove people from it and shouldn’t rename it.

---

<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 3, 2015, 5:54pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/3 "2015-03-03T17:54:16Z")

</div>

This is a custom group, it’s under “Custom” – so it should be editable.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 3, 2015, 6:52pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/4 "2015-03-03T18:52:26Z")

</div>

ooh! I hadn’t seen the CUSTOM / AUTOMATIC update - that is very nice. Thanks for protecting us from us! 👍

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 3, 2015, 7:07pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/5 "2015-03-03T19:07:30Z")

</div>

I just removed it 😉 The issue was that the “`Apply the same email domain rule to add existing registered users`” checkbox needed to be unchecked otherwise that user was automatically re-added since her email matched `openrov.com`.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 3, 2015, 7:07pm UTC](https://meta.discourse.org/t/unable-to-remove-member-from-group-v1-3-0-beta2/25928/6 "2015-03-03T19:07:34Z")

</div>


