MyBB Community Forums

Full Version: Need to delete all threads by one user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I keep getting "raided" by other forums. They make accounts and spam threads. I need a way to delete all the threads they make at once Sad
You'd have to delete the users posts through your database as there isn't a way to do this within mybb.

If I find a user that SPAMS, I delete them and all their posts...period. And I updated my ruleset that shows at registration to support this.
You can use queries to do that:
DELETE FROM mybb_posts WHERE uid = 'x';
DELETE FROM mybb_threads WHERE uid = 'x';
This will delete all threads and posts by the user with the ID x.
Thanks a lot Smile
I wouldn't recommend doing it that way because it won't delete associated data (attachments, favorites, polls), and it won't update post counts or forum stats.

I doubt it will break anything, but just keep that in mind. Smile