# Delete a workspace tenant variable

Source: https://www.jawsdeploy.net/rest-api/workspace-tenant-variable-template-delete | Section: Workspace Tenant Variables

Delete a workspace tenant variable that no project uses.

`DELETE /api/workspace/tenant-variable-template`

Refused while any project uses the variable. Stop using it in those projects first with `DELETE /api/project/workspace-tenant-variable`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `templateId` | query | string | yes | ID of the workspace tenant variable. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `templateId`, or a project still uses it - the message lists those projects. |
| 401 | Missing or invalid Basic auth credentials, or the service account can't manage workspace variables in this workspace. |

Example request:

```
DELETE /api/workspace/tenant-variable-template?templateId=tvt_port HTTP/1.1
Authorization: Basic <base64(serviceAccountId:apiKey)>
```

Example response:

```
{}
```

