Deleting a customer from database

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I want to delete a customer that was registered but not activated his account yet. What tables apart from the Customer I have to delete data from?

Thanks in advance
3 years ago
It's enough to click the "Delete" button on a customer details page in admin area.

But if you want to delete it manually (e.g. using SQL commands), then please check [CustomerPassword] and [GenericAttribute] tables.

In some cases (depends on your store configuration) information could be stored into [ActivityLog], [Address], [GdprLog], [ShoppingCartItem] tables
3 years ago
Thanks.

CheckPassword has a cascade so deleting user from customer deletes the entry there.

GenericAttribute though does not. You have to delete it manually
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.