miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
How To miniBB Support Forums / How To /   

How can I delete all topics in one of my forums?

Author Danny2000
#1 | Posted: 28 Oct 2006 17:25 | Edited by: Danny2000 
How can I delete all topics in one of my forums? (I don't want to delete that forum, I just want to delete all of it's topics. It has about 1200 topics)

Author marsbar
Associated Member
#2 | Posted: 28 Oct 2006 18:49 
Perhaps this is an option for you: delete the forum (so that you can delete all posts/threads in it) and then re-create it again.

Author Danny2000
#3 | Posted: 28 Oct 2006 20:21 
If I do this the forum number is change, and all of my previous setting (define moderators and ...) must be change

Author Paul
Lead Developer
#4 | Posted: 29 Oct 2006 04:47 
I think, it's possible to do only directly in database. For example, by the following command:

delete from minibbtable_topics where forum_id=FORUM_ID;
delete from minibbtable_posts where forum_id=FORUM_ID;

But please note: number of postings per each users also needs to be recalculated. I recommend to run Update Script (convdb.php) after all and choose "second" option to re-calculate amount of topics and posts in static fields.

If you have large amount of posts, it's worth to recalculate only number of user postings (not also topic latest post time, as this script does by default). You may comment out the algorithm which states as /* Topic last post time */ and run this script calculating only user postings then.

Author Danny2000
#5 | Posted: 29 Oct 2006 21:58 
Thank you so much ;-)

How To miniBB Support Forums / How To / How can I delete all topics in one of my forums? Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB