# Delete discount code

`DELETE https://rcur.app/api/v2/discounts/{id}`

A code that has been used is archived instead, so the discounts it gave stay visible.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |

## Example request

```bash
curl -X DELETE https://rcur.app/api/v2/discounts/YJRQAMRQ6y \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

## Responses

### 204 No content

### 404 Resource not found

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | integer | yes |  |
| `error` | string | yes |  |

```json
{
    "status": 404,
    "error": "Resource not found"
}
```
