# Delete account member

```http
DELETE /accounts/{account_id}/members/{user_id}
```

Remove a member from the account, or leave it yourself; removing another member requires account.members.manage. Requires account.read; API keys also need delete scope.

## Parameters

| Name         | In   | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------ | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account_id` | path | Yes      |                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `user_id`    | path | Yes      | Member to remove. Members may remove themselves. Removing another member requires account.members.manage. Removing another owner requires account ownership authority. The account must retain at least one owner. Removing an absent member returns 404. The member also loses access to every project in the account; projects they own pass to the longest-standing other account owner. Projects and financial history are not touched. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Membership and project access in the account removed. Projects and financial history are not touched.       |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden. API keys also require delete scope.                                                              |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
