# Disconnect a tenant from a project

Source: https://www.jawsdeploy.net/rest-api/tenants-project-disconnect | Section: Tenants

Disconnect a tenant from a project.

`DELETE /api/tenant/project`

Disconnects a tenant from a project. The tenant is no longer deployed with that project, and its environment choices for it are removed.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `tenantId` | query | string | yes | ID of the tenant. |
| `projectId` | query | string | yes | ID of a project the tenant is connected to. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `tenantId` or `projectId`, or the tenant is not connected to the project. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks permission to manage tenants in this workspace. |

Example request:

```
DELETE /api/tenant/project?tenantId=tnt_acme&projectId=prj_abc123 HTTP/1.1
Authorization: Basic <base64(serviceAccountId:apiKey)>
```

Example response:

```
{}
```

