---
title: "Delete a coupon code"
method: DELETE
path: "/shop/coupons/{couponId}/codes/{couponCodeId}"
tags: ["CouponCodes"]
---

# Delete a coupon code

`DELETE /shop/coupons/{couponId}/codes/{couponCodeId}`

Removes a `CouponCode`. Past redemptions are unaffected — the
customer credit issued at redemption time persists. Future
attempts to use the code fail with a 422.

Requires the `SETTINGS_MANAGE` permission on the coupon's site.

## Response `204`

Coupon code deleted successfully.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
