# Delete user

`DELETE https://api.airtable.com/scim/v2/Users/{userId}`

Delete a single SCIM user.

    The endpoint cannot be used to delete the admin that owns the authentication token used to make the request.

    The endpoint cannot be used to delete the sole owner of a workspace that has multiple collaborators.

See [SCIM specification](https://datatracker.ietf.org/doc/html/rfc7644#section-3.6) for more.

## Requirements

- **Authentication:** [Personal access token](https://airtable.com/developers/web/api/authentication.md#types-of-token), [OAuth integration](https://airtable.com/developers/web/api/authentication.md#types-of-token)
- **Scope:** [`enterprise.scim.usersAndGroups:manage`](https://airtable.com/developers/web/api/scopes.md#enterprise-scim-users-and-groups-manage)
- **User role:** Enterprise admin _Note: Admins of multiple enterprises should use a service account's token when calling this route._
- **Billing plans:** Business, Enterprise (pre-2023.08 legacy plan), Enterprise Scale

## Path parameters

- `userId: string`

## Response format

Returns `object`.

## Error responses

### 404

**Unknown user ID** — With an unknown User ID

```json
{
  "detail": "user not found",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": 404
}
```

### 422

**Against own id** — Delete called against own ID

```json
{
  "detail": "Cannot perform deletion operation on own account",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": 422
}
```

**Against sole owner of workspace with multiple collaborators** — Delete called against sole owner of workspace with multiple collaborators

```json
{
  "detail": "Cannot delete the sole owner of a workspace containing multiple collaborators",
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": 422
}
```
