![]() |
SQL Query required to Prune forum
Dear Helpers
I need a SQL query to remove my empty forums which have no thread . Due to some changes i need to delete many forums on my board and it will take hours to delete one by one. I am not able to find Prune empty forum in my adminCP. Thank you in advance |
This should work
PHP Code:
|
Thank You very much " vBNinja "
One problem i am facing #1093 - You can't specify target table 'forum' for update in FROM clause |
You probably have a table prefix, look for "forum" in the tables with phpmyadmin
If it has something in front of it, use that name in the query instead of "forum" |
Quote:
|
DELETE FROM `forum` WHERE `threadcount`='0' AND `parentid`='-1'
Please do a backup before running this |
All times are GMT. The time now is 11:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|