> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a macro.

> **Required scope:** admin

**Required scope:** `admin`

### Path parameters

<ParamField path="id" type="string" required>
  Macro id
</ParamField>

### Response

No response body. Macro deleted.

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Macro deleted                                      |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | No such macro in this organization                 |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.nsr.stateset.com/api/v1/macros/{id}' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>
