# Delete subaccount admin

> Remove the person and all their access.

Source: https://docs.mycrmsim.com/docs/subaccount-admins/delete-subaccount-admin

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

- Category: myCRMSIM Subaccount Admins / Subaccount Admins
- Auth: Bearer access token
- Scope: `subaccount_admins.write`

Their account, workspace and device access are deleted. Their tasks, appointments and messages stay. Cannot be undone; to stop them signing in for now, set status to inactive instead.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | number | yes | Subaccount admin id. Example: `41` |

## Response 200

OK

```json
{
  "success": true,
  "message": "Subaccount admin deleted"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): subaccount_admins.write. This integration was granted: …"
}
```

## Response 403

The token was installed by a subaccount admin, not the account owner

```json
{
  "success": false,
  "message": "Only a token installed by the account owner can manage subaccount admins."
}
```

## Response 404

Not a subaccount admin of the installer

```json
{
  "success": false,
  "message": "Subaccount admin not found or not accessible to this token"
}
```
