Customer cleanup guide
How to bulk delete spam customer accounts in Shopify (safely)
What you’ll need
Your customers export CSV
How to get this: Your customers export CSV
- Customers › Export › All customers (keep Customer tags ticked) › Export customers.
- More than 50 customers arrive by email.
Shopify’s free GraphiQL app (with only to tag them: write_customers access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Back up first
- Customers > Export > All customers, with Customer tags ticked.
- Keep that file somewhere safe. It’s the only copy of what you’re about to remove.
Find and tag them
- Drop the export into the cleaner. Customers with orders, money spent, notes or protected tags are never flagged.
- Review each flagged customer and its reasons. Untick anyone real.
- Import the 1-customer test file with Overwrite ticked, check that customer, then import the rest.
Delete in Shopify
- Customers > Segments > create a segment with customer_tags CONTAINS 'suspected-bot'.
- Select all customers in the segment, then … > Delete customers.
Stop new ones
- Turn on hCaptcha or Shopify’s bot protection for account and newsletter forms.
- If they keep coming, check your marketing apps’ sign-up forms too.