# Delete a Shopify coupon

> Remove a Shopify coupon from Data Platform › Dynamic Coupons, together with the codes in your Shopify store that were not sent yet.

Deleting a Shopify coupon removes it from Releva and removes its unsent codes from your Shopify store. Codes that were already sent stay in Shopify, so customers can still use them until they expire. This cannot be undone.

The merge tag of a deleted coupon stops working. Messages that still use `{{dynamicCoupons.<name>}}` are skipped for every recipient. Remove or replace the tag in those emails, push notifications, text messages, Viber and WhatsApp messages and webhooks first.

## Before you start

* No active campaign or workflow still uses the coupon’s merge tag.
* Your plan includes deleting coupons. If **Delete** shows a lock icon, ask your account owner to unlock it.

## Steps

1. Go to **Data Platform › Dynamic Coupons** and open the **Shopify Coupons** tab.

2. In the coupon’s row, open the menu on the right and select **Delete**.

3. Read the message and select **Confirm**.

   The message reads “Delete \<name>? Codes not sent yet are removed from your Shopify store. This action cannot be undone!”. Select **Close** to keep the coupon.

   You can also delete a coupon from its edit page: select **Delete**, then **Confirm**.

## Check it worked

* The coupon’s row is no longer on the **Shopify Coupons** tab.
* In your Shopify admin, under **Discounts**, the unsent codes disappear after a few minutes. Codes that were sent are still listed.
* The coupon’s **Dynamic coupon:** entry is no longer offered in the **Merge Tags** picker.

## Troubleshooting

**A message that used the coupon is not being sent.** Its content still has the merge tag of the deleted coupon. Edit the message and replace the tag with one of an existing coupon, or remove it.

**You deleted the wrong coupon.** It cannot be restored. Create a new one with the same name and settings: [Create Shopify coupons](https://releva.ai/documentation/guides/dynamic-coupons/create-shopify-coupons/). The merge tag works again with new codes.

**Unsent codes are still in Shopify.** Releva removes them in the background. If they are still there after an hour, the Releva app may have lost its permission in Shopify; see [Re-authorize Releva in Shopify](https://releva.ai/documentation/guides/dynamic-coupons/re-authorize-releva-in-shopify/), then delete the leftover codes in Shopify.

## Next steps

* [Create Shopify coupons](https://releva.ai/documentation/guides/dynamic-coupons/create-shopify-coupons/): Set up a new coupon for your next offer.
* [How dynamic coupons work](https://releva.ai/documentation/learn/dynamic-coupons/how-dynamic-coupons-work/): Learn what happens to messages whose merge tag names a missing coupon.