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
    1. Customers › Export › All customers (keep Customer tags ticked) › Export customers.
    2. More than 50 customers arrive by email.

    Step-by-step guide (opens in a new tab)

  • Shopify’s free GraphiQL app (with only to tag them: write_customers access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Find the fake accounts

Back up first

  1. Customers > Export > All customers, with Customer tags ticked.
  2. Keep that file somewhere safe. It’s the only copy of what you’re about to remove.

Find and tag them

  1. Drop the export into the cleaner. Customers with orders, money spent, notes or protected tags are never flagged.
  2. Review each flagged customer and its reasons. Untick anyone real.
  3. Import the 1-customer test file with Overwrite ticked, check that customer, then import the rest.

Delete in Shopify

  1. Customers > Segments > create a segment with customer_tags CONTAINS 'suspected-bot'.
  2. 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.

More guides