View Full Version : Prune all posts by usergroup query?
Okiewan
02-08-2004, 02:24 PM
Need a little help. I need to delete all posts by the unregisterd/guest usergroup.
sql query please?
Thanks!
AN-net
02-08-2004, 04:07 PM
DELETE FROM post WHERE userid=0;
edit:
i would also suggest running this just incase;):
DELETE FROM thread WHERE postuserid=0;
g-force2k2
02-08-2004, 09:24 PM
I would probably do more than delete from the post and thread tables based upon those ids because there's also the thread rate, attachment, polls, etc to delete rows from, but just my opinion.
Cheers,
g-force2k2
AN-net
02-08-2004, 10:13 PM
yeah i was going to say that also but i wasnt sure if he had enabled unregistered/not logged in to attach,vote, or rate threads. anyways, if you did allow them to just respond and ill whip up some queries to delete those also;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.