Automatically unlisting a topic after X days

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

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)

4 Likes