we have thousands of old/obsolete topics across our forum which we like to delete. I already searched meta for an appropriate way to achieve this but couldn’t found a proper solution.
Would it be enough to iterate through a list of topic-ids and set the
deleted_at - flag of each topic we like to “delete” or is there a better way? I know it’s a quite lazy solution.
I think it is a little bit of overhead to write an extra (small) plugin to make use of
Topic.destroy for a bulk-delete.
Context: These topics produces crawling-issues and soft404 and we like to hide them from search engines. Deleted topics are excluded from our sitemap.