# Automatically unlisting a topic after X days

**URL:** <https://meta.discourse.org/t/automatically-unlisting-a-topic-after-x-days/168673>\
**Category:** Feature\
**Tags:** unlisting, topic-timers\
**Created:** [October 29, 2020, 6:45pm UTC](https://meta.discourse.org/t/automatically-unlisting-a-topic-after-x-days/168673 "2020-10-29T18:45:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![theblazehen](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@theblazehen](https://meta.discourse.org/u/theblazehen)\
**Post date:** [November 1, 2020, 3:24pm UTC](https://meta.discourse.org/t/automatically-unlisting-a-topic-after-x-days/168673/6 "2020-11-01T15:24:48Z")

</div>

I’ve got a cron job that automatically unlists closed topics in a specific category,

```plaintext
run:
  - exec: echo '* * * * * postgres /usr/bin/psql discourse -c "update topics set visible = FALSE where category_id = 19 and closed = TRUE;"' >> /etc/crontab

```

In my app.yml. Can combine that with auto close (We have it for auto close once a solution is selected)

---

_[View the full topic](https://meta.discourse.org/t/automatically-unlisting-a-topic-after-x-days/168673)._
