How to mass delete Spam customers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 năm cách đây
Hi,

I'am very new to this and just wondered if there is any way to quickly select all my spam customer accounts and delete them? ATM it only lets me delete 1 at a time then resets me back to the beginning.

Thanks,

lucas
3 năm cách đây
Using the admin GUI, no.   If you can use SQL (have a tool like SSMS or host SQL console), I can provide some SQL scripts.
3 năm cách đây
yes please!
3 năm cách đây
I suggest you enable captcha setting for security no spam customer can register
3 năm cách đây
Here's a SQL I use.  Many spammers will put very large text in first name field.
DELETE [Customer]
WHERE [Id] IN (select [EntityId] from [GenericAttribute] where [KeyGroup] = 'Customer' and [Key] = 'FirstName' and  len(value) > 50 )


(You may want to first "select * " with just the inner query part to be sure your not deleting any legitimate customers)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.