• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Delete All Empty Forums

Brent W

Well-known member
#1
Hi,

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?
 

Mike

XenForo developer
Staff member
#2
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.