# Delete workspace

> Permanently delete a workspace.

Source: https://docs.mycrmsim.com/docs/workspaces/delete-workspace

```http
DELETE https://backend.mysmsgateway.app/api/v1/ext/workspaces/{id}
```

- Category: myCRMSIM Workspaces / Workspaces
- Auth: Bearer access token
- Scope: `workspaces.write`

Permanently deletes the workspace — this is a hard delete and cannot be undone. A subsequent GET / PATCH / DELETE on its id returns 404 Not Found.

A workspace with ANY device or SIM still attached (Android/SMS, WhatsApp, iMessage, RCS, or an assigned SIM) is protected: the request is rejected with a 400 listing what is still attached. Unassign or delete those first, then retry the delete.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | number | yes | Workspace id. Example: `7` |

## Response 200

Deleted permanently

```json
{
  "success": true,
  "message": "Workspace deleted.",
  "data": {
    "id": 7,
    "deleted": true
  }
}
```

## Response 400

Workspace still has devices or SIMs attached — unassign/delete them first

```json
{
  "success": false,
  "message": "Cannot delete workspace: device(s) are still connected (whatsapp: 1, android: 2, sim: 1). Unassign or delete these devices first, then retry."
}
```

## Response 404

Workspace does not exist or is not owned by the installer

```json
{
  "success": false,
  "message": "Workspace not found"
}
```
