XF 1.5 Delete All Empty Forums

Brent W

Well-known member

We have 101 empty forums from over the years and would like to delete them all at once. I have a list of all the node_ids that have discussion_count = 0. Is there a query or script I can run to delete all these forums from the database?
There's a lot of related data in the DB that needs to be cleared out and caches that need to be rebuilt. I could only recommend doing it through the UI.
Top Bottom