# Delete a workspace variable

Source: https://www.jawsdeploy.net/rest-api/workspace-variables-delete | Section: Workspace Variables

Soft-delete a workspace variable.

`DELETE /api/workspace-variable`

Soft-deletes the workspace variable. Projects that imported it lose access on the next deployment.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `variableId` | query | string | yes | ID of the workspace variable. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `variableId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
DELETE /api/workspace-variable?variableId=wv_1
```

Example response:

```
{}
```

