---
title: "Delete all coupon codes"
method: DELETE
path: "/coupons/{coupon_id}/codes"
tags: ["Coupons"]
---

# Delete all coupon codes

`DELETE /coupons/{coupon_id}/codes`

Permanently deletes all codes for a coupon.

**Warning:** After this operation, the coupon will have no active
codes and cannot be applied at checkout until new codes are added
via `POST /coupons/{coupon_id}`.

## Path parameters

- `coupon_id` string, required

## Response `200`

Codes successfully deleted.

- DeleteCodesSuccessResponse
  - `coupon` string — Path identifier of the coupon whose codes were deleted.
  - `codes deleted` string[] — The codes that were deleted.
  - `action` string — The operation performed.
  - `result` 'success' — Indicates the operation succeeded.

## Other responses

- `400` — Validation or request error. Returns `200 OK` — always check the `result` field rather than relying on the HTTP status code alone.

---

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