Last active
December 27, 2015 19:39
-
-
Save addisonhall/7378660 to your computer and use it in GitHub Desktop.
These SQL statements help get rid of unwanted members that may have spammed your ExpressionEngine 2.x site. Be sure to include the correct member IDs that you want to keep!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM exp_member_homepage | |
WHERE member_id not in ( 1, 2, 3 ) | |
DELETE FROM exp_member_data | |
WHERE member_id not in ( 1, 2, 3 ) | |
# 'Members' member group | |
DELETE FROM exp_members | |
WHERE group_id = 5 | |
AND member_id not in ( 1, 2, 3 ) | |
# 'Pending' member group | |
DELETE FROM exp_members | |
WHERE group_id = 4 | |
AND member_id not in ( 1, 2, 3 ) | |
DELETE FROM `exp_comments` WHERE `author_id` = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment