Shopify DiscountsLast reviewed

How to Deactivate or Delete a Discount Code in Shopify

Who this is for

Marketing ops and store managers who need to stop a discount immediately — a leaked code, a pricing mistake, or a campaign that ran too long.

To stop a Shopify discount, open Discounts in Shopify Admin, select it, and choose Deactivate. Deactivating stops new redemptions immediately but keeps the discount so you can reactivate it and keep its configuration on record. Deleting removes the discount permanently; orders that already used it keep the discount on their order record, but you lose the setup for future reference. In an emergency — a code on a coupon site or a typo that gives 90% off — deactivate first and investigate second.

When to use this

  • A private code leaked to a coupon or deal site.
  • A discount was set up with the wrong amount or scope.
  • A campaign ended but the discount had no end date.
  • You're cleaning up old discounts before peak season.

Step-by-step workflow

  1. 1

    Deactivate, don't delete, in an incident

    Deactivation is instant and reversible. It also keeps the discount's settings so you can show finance exactly what was live.

  2. 2

    Check what already used it

    Look at the discount's usage count and filter orders by the discount code to size the impact. Decide whether to honour, cancel, or contact affected orders — honouring is usually cheaper than the support and chargeback cost of cancelling.

  3. 3

    Replace the code if it was legitimate

    If a real campaign code leaked, issue unique single-use codes to the intended audience instead of reactivating the public one.

  4. 4

    Add an end date to every future discount

    Most 'it ran too long' incidents are discounts created without an end date. Make it a required field in your launch checklist.

  5. 5

    Delete only during scheduled clean-up

    Delete expired discounts in a periodic review, after the campaign's reporting is closed.

Frequently asked questions

What's the difference between deactivating and deleting a Shopify discount?

Deactivating stops the discount from being used but keeps it so it can be reactivated. Deleting removes it permanently.

Does deleting a discount affect past orders?

No. Orders that already used the discount keep the discount amount on the order. Only the discount's configuration is removed.

Can I set a discount to turn off automatically?

Yes. Set an end date and time under Active dates. It uses your store's time zone.

Related resources and tools

Browse all Shopify answers →