# Remove a member from the workspace

Take a seat away and settle what pointed at it: board grants are deleted, team rows go (teams they LED survive, leaderless), their tasks and rows become unassigned, and boards they made stand. ACCESS GOES, WORK STAYS — nothing is deleted because somebody left, and the answer counts each. Admin only; an owner can only be removed by an owner, and never the last one (409).

Access class: `workspace:admin`.

## Endpoint

`DELETE /v1/workspace/members/{accountId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| accountId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accountId": "",
    "boardsKept": 1,
    "grantsRevoked": 1,
    "rowsUnassigned": 1,
    "tasksUnassigned": 1,
    "teamsLeft": 1,
    "teamsUnled": 1
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
