XenForo does not have an option to mass delete threads from a forum category. If you delete the category the threads do not delete.
Does anyone know of any query to delete all threads belonging to a certain forum?
EDIT: I ran this SQL query
Replacing XX with your node id (category id) will empty that certain category.. but I am not sure if the threads are actually gone from the database... I rebuiled the forum information and it shows the new thread count with the threads "deleted" but then I ran a rebuild thread cache and it counted all of them like if they were still there. Maybe they are now orphan somewhere?
Does anyone know of any query to delete all threads belonging to a certain forum?
EDIT: I ran this SQL query
Code:
delete from `xf_thread` where `node_id`='[B][COLOR="Red"]XX[/COLOR][/B]'
Replacing XX with your node id (category id) will empty that certain category.. but I am not sure if the threads are actually gone from the database... I rebuiled the forum information and it shows the new thread count with the threads "deleted" but then I ran a rebuild thread cache and it counted all of them like if they were still there. Maybe they are now orphan somewhere?
Last edited: