# Delete a variable

**Publié le** : 2026-05-08
**Catégorie** : Core CMS

## `DELETE /variables/:id`

**Delete a variable**

Permanently deletes a variable.

Required permissions: `variables.delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

| Status | Description |
| --- | --- |
| `204` | Deleted (no body) |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `404` | Not found |


### Examples

```bash
curl -X DELETE https://api.lynkow.com/v1/variables/4 \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "message": "Variable deleted"
}
```

---