# Automatically delete replies after N days

**URL:** https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759
**Category:** Feature
**Created:** [September 17, 2019, 6:33am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759 "2019-09-17T06:33:10Z")
**Posts on this page:** 20
**Page:** 1

<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: [September 17, 2019, 6:33am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/1 "2019-09-17T06:33:10Z")

</div>

For the various knowledge base topics we have I would like to have a special timer for:

> Replies on this topic are automatically deleted after N days

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

I think this is a very powerful tool for keeping documentation topics clean. I would have this on most documentation topics on meta.

It means people can reply to them but they **know upfront** that replies are like tears in the rain. If you want something permanent:

- Open a new topic

or

- Edit the OP

Even though we can do this pruning by hand it is tedious. Plus, on a psychological level, when a computer does something cause “these are the rules of the ball game”, it feels way better than us humans intervening. (oh why are you making up this rule now, not fair)

---

<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: [September 17, 2019, 6:35am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/2 "2019-09-17T06:35:13Z")

</div>

I think we might also want to retain replies that have a certain threshold of likes, just in case?

Other than that I think there’s clear need for this based on our usage at least, in the “first post wiki” kinda deals. It would have to be a per-topic setting though, right?

---

<div class="post-metadata">

### Author: ![Heather\_Dudley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heather_dudley/32/151925_2.png) [@Heather\_Dudley](https://meta.discourse.org/u/Heather_Dudley)
#### Post date: [September 18, 2019, 4:40am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/3 "2019-09-18T04:40:52Z")

</div>

I like this. We have a lot of “stickies” (pinned posts) that might get a lot of heavy use _now_ as we transition over to Discourse, but later won’t be as relevant. I don’t want to have to remake the posts every so often.

---

<div class="post-metadata">

### Author: ![DaleKramer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dalekramer/32/169487_2.png) [@DaleKramer](https://meta.discourse.org/u/DaleKramer)
#### Post date: [February 19, 2020, 7:33pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/4 "2020-02-19T19:33:24Z")

</div>

I am in favor of this feature request for all the reasons cited above plus one more.

Here is some background for my reasoning. I have researched having a ‘chat’ feature in Discourse and understand the position of the Discourse team on people using private multi-recipient messages for chatting.

I know that both Babble and ‘Quick messages’ plugins use the multi-recipient PMs at their core.

I think ‘Quick Messages’ is almost exactly what suits us.

We want to have just a few selected people on our site who are allowed to chat but it seems to me that the feature requested by this topic, if implemented as a feature, would mitigate most of the negative issues with using multi-recipient PMs as a form of chatting.

Actually I hate chat, but it has its purpose for a team of people who are working together on creating a DRAFT of a long helpful general forum topic. The chat sidebar, can be on top while all the good stuff that results from the chatting gets transferred to the DRAFT topic, on the same screen below (preferably beside) the chat sidebar.

Our team is using RocketChat beside a Discourse window right now but I want an All-in-one solution…

Just my 2 cents and I really would like if this feature were added soon 🙂

I would like a ‘chat now’ button beside each topic, so that ‘chat’ on the topic could be found easily in the future vs having to wade through a bunch of PM’s to see it there was a chat for a topic 😉

**EDIT: I am suggesting that ‘deleting replies after X days’ in these ‘linked to a topic’ multi-recipient PMs that can also show up in a expandable/hide-able chat sidebar (in the chat sidebar, the PM is ‘compressed’ by removing dead space and using image thumbnails), would be the ultimate for us.**

Also, I do not think whispers are a close enough solution for our issue.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [March 12, 2020, 1:34pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/5 "2020-03-12T13:34:42Z")

</div>

This could be great feature for special type of topics: e.g. one-time question and answer. I’d love to see this implemented..

Also useful for some announcements that we want let users to react to but at the same time keep topic clean.

---

<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: [March 13, 2020, 5:09am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/7 "2020-03-13T05:09:17Z")

</div>

This is on our roadmap for the next release!

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [March 19, 2020, 3:39pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/9 "2020-03-19T15:39:08Z")

</div>

Now it’s done in the commit below. I did many changes in the “`future-date-input`” code. So let me know if there are any new UX issues related to it.

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

---

<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 29, 2020, 3:01am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/10 "2020-03-29T03:01:08Z")

</div>

Where do we set this, can you share a screenshot of the user interface? Is it a per-topic setting?

---

<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: [March 29, 2020, 3:11am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/11 "2020-03-29T03:11:18Z")

</div>

Per topic at the moment in the topic timer UI

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [March 29, 2020, 4:46am UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/12 "2020-03-29T04:46:37Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/c/7/c7ffbbc040f834347f829eaa999fcd96c5a97b75.png)

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [April 16, 2020, 5:57pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/13 "2020-04-16T17:57:16Z")

</div>

If I go to Set Timer dialog, choose “Auto-delete replies” and then exit modal by clicking ❎, following new line appears:

![image](https://global.discourse-cdn.com/meta/original/3X/e/7/e75bf30e73d482eafe320f6f4f6a1c8791c255a0.png)

It can’t be deleted and disappears after reload.

---

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [April 22, 2020, 3:39pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/15 "2020-04-22T15:39:35Z")

</div>

I just saw this feature in today’s release notes. It looks great! I have a follow up question.

> [@codinghorror](#):
>
> I think we might also want to retain replies that have a certain threshold of likes, just in case?

Did this part of the feature get implemented? It seems like a good idea.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [April 22, 2020, 4:34pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/16 "2020-04-22T16:34:07Z")

</div>

> [@dfabulich](#):
>
> Did this part of the feature get implemented?

No, it’s not yet implemented.

---

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [April 22, 2020, 4:39pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/17 "2020-04-22T16:39:59Z")

</div>

Alas. Is there any way to manually save a reply from deletion?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [April 22, 2020, 4:42pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/18 "2020-04-22T16:42:46Z")

</div>

Sorry! it doesn’t have that kind of option right now.

---

<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: [April 22, 2020, 5:34pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/19 "2020-04-22T17:34:28Z")

</div>

Agreed, we kind of missed that Vinoth – we should add protection for replies with \>= `x` likes. Either hard-coded or as a site setting.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [April 22, 2020, 5:46pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/20 "2020-04-22T17:46:26Z")

</div>

In that case, should we retain only the OP replies? Because if we retain a non-OP reply without its reply-to-post it will create confusion. For example, if we delete [post #10](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/10) and retain [post #11](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/11) in this topic then it won’t make any sense.

---

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [April 22, 2020, 6:02pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/21 "2020-04-22T18:02:10Z")

</div>

I’d also like to put in my two cents in favor of manually saving replies. (As long as it’s a manual process, presumably whoever it is that’s saving the replies will have the wit to save replies that make sense out of context.)

---

<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: [April 22, 2020, 7:49pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/22 "2020-04-22T19:49:55Z")

</div>

It can be arbitrary. Likes is the only metric we need.

---

<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: [April 22, 2020, 10:32pm UTC](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759/23 "2020-04-22T22:32:36Z")

</div>

I am fine with a site setting here of:

`skip_auto_delete_reply_likes` (default 5)

It can be somewhat surprising, so I would like us to have this number communicated to admins when they set the timer. Maybe we wait on the redesign of topic timers UI @martin is working on to add this in?

Note, this doe not solve @dfabulich problem, and to be honest I can not think of a clean workaround for manually protecting, here are some things I thought about

1. `skip_auto_delete_reply_on_staff_like` (default false) - similar to how we feature comments on BBS using staff likes

2. Automatically skip on “post notice” … adds noise

3. Always skip when staff posts, would have to be a setting

4. Something else … too messy imo.

[Next page](https://meta.discourse.org/t/automatically-delete-replies-after-n-days/128759.md?page=2)
