# DeleteDiscountCode

> Delete a discount code here and at its providers. Irreversible. Write access, discounts toolset, MCP tool delete_discount_code.

> **Warning:**
> Irreversible. This operation removes or replaces something. MCP clients see it with `destructiveHint` set, and an agent should tell you what it will change and wait for your yes.

**Access:** [Write](https://developer.missin.co.uk/get-started/authentication.md#access-levels)

## Variables

| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `input` | `DeleteDiscountCodeInput!` | yes | Input object, below |  |

## Input types

### DeleteDiscountCodeInput

| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `id` | `UUID!` | yes |  |  |

## Call it

```bash curl
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"DeleteDiscountCode","variables":{"input":{"id":"00000000-0000-0000-0000-000000000000"}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"99cc176539ab159f612b7da0dc3c67c31670969e4bbef4be9d0f1c2c71841384"}}}'
```

## Document

```graphql
mutation DeleteDiscountCode($input: DeleteDiscountCodeInput!) { __typename deleteDiscountCode(input: $input) { __typename id } }
```

Source: https://developer.missin.co.uk/reference/discounts/delete-discount-code
