Clean up old topics

Hi! I’m happy to know that Discourse worked very well for your project :smiley: :+1:

Just to be sure to understand; your criteria to make a topic eligible for deletion would be only its age?

There’s no built-in feature in the interface that would allow that, but you could create and manually trigger a rails script that would delete topics older than a certain date.

Topic.where("created_at.....").destroy_all

Between brackets is a SQL query.

1 Like