# Messaging: Group inboxes and archives show even after all messages deleted

**URL:** https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467
**Category:** Bug
**Created:** [Agosto 10, 2016, 6:18pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467 "2016-08-10T18:18:13Z")
**Posts on this page:** 15
**Page:** 1

<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: [Agosto 10, 2016, 6:18pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/1 "2016-08-10T18:18:13Z")

</div>

On my site, I have a dozen or so old group inboxes showing up in my messages even though I decided not to use them and have deleted all the messages that were in them. Other users who are in these groups also see the group inboxes. Is there anything that can be done to make them go away? I’d be grateful. 🙏

 ![](https://global.discourse-cdn.com/meta/original/3X/3/4/34ecf4ba8f1a172abab85d449a98905607d10d9f.png)

---

<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: [Agosto 10, 2016, 6:31pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/2 "2016-08-10T18:31:35Z")

</div>

Any ideas here @sam?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Agosto 10, 2016, 9:15pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/3 "2016-08-10T21:15:32Z")

</div>

Change the group not to accept messages?

---

<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: [Agosto 10, 2016, 9:27pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/4 "2016-08-10T21:27:14Z")

</div>

Toggling “who can message and @mention this group” from “Everyone” to “Nobody” doesn’t seem to make any difference. I also have many other groups that have never received a message that don’t have a group inbox. It seems to just be the ones that previously received messages.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Agosto 10, 2016, 10:30pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/5 "2016-08-10T22:30:33Z")

</div>

Are there any messages in archive?

---

<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: [Agosto 10, 2016, 10:34pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/6 "2016-08-10T22:34:12Z")

</div>

Nope.. no messages in archive. I made sure to delete all messages in the inbox and in the archive for each group mailbox.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/a/3a3cd3fff6908f20c7d715cb2c072cdb661cf2ff.png)

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [Setembro 21, 2016, 4:00pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/7 "2016-09-21T16:00:55Z")

</div>

@tobiaseigen is this still happening?

@sam have you had a brainwave of what might be happening here in the last month-or-so?

---

<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: [Setembro 21, 2016, 4:16pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/8 "2016-09-21T16:16:43Z")

</div>

yup - still looks the same, with a long list of group inboxes and archives that when clicked on are empty.

---

<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: [Dezembro 3, 2016, 12:59am UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/9 "2016-12-03T00:59:00Z")

</div>

@sam I’d love a fix for this at some stage. Don’t know if others are affected but it’s not great in my community and members are complaining about it.

---

<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: [Setembro 4, 2017, 6:09pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/10 "2017-09-04T18:09:37Z")

</div>

When you get a chance, can you let me know if there’s a solution for this? Even a database query I can run to just delete the old message inboxes containing no messages for those who have them?

I felt hopeful that we could put this baby to rest until messaging gets some love, now that we have this:

> [@Split into two settings: "Who can message and @mention this group?"](https://meta.discourse.org/t/split-into-two-settings-who-can-message-and-mention-this-group/41203/8):
>
> This has been merged. We now have two separate settings: Thanks again @nbianca! clap

---

<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: [Setembro 13, 2017, 6:01pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/11 "2017-09-13T18:01:14Z")

</div>

Sure @techapj can you take a look at this?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Setembro 28, 2017, 5:24pm UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/13 "2017-09-28T17:24:23Z")

</div>

Sent a PR for it:

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

EDIT: PR is merged.

@tobiaseigen after updating to latest version, the empty group inboxes will be cleared up in ~12 hours.

Feel free to flag this post if the issue persists.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Setembro 29, 2017, 4:01am UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/14 "2017-09-29T04:01:39Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Setembro 29, 2017, 4:03am UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/15 "2017-09-29T04:03:35Z")

</div>

Note you can manually kick off the weekly task by going to `/sidekiq/scheduler` searching for `Weekly` and triggering that.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Setembro 29, 2017, 4:05am UTC](https://meta.discourse.org/t/messaging-group-inboxes-and-archives-show-even-after-all-messages-deleted/48467/16 "2017-09-29T04:05:54Z")

</div>

Oh right. Also, I just noticed that this process will run in `EnsureDbConsistency` job which runs every 12 hours, so the process should be quick.
