---
title: "Remove a member from an organization"
method: DELETE
path: "/organizations/{organization}/members/{id}"
tags: ["Organization members"]
---

# Remove a member from an organization

`DELETE /organizations/{organization}/members/{id}`

### Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:

**Service Token Accesses**
 `write_organization`

**OAuth Scopes**

 | Resource | Scopes |
| :------- | :---------- |
| Organization | `write_organization` |

## Path parameters

- `organization` string, required
- `id` string, required

## Request body

- object
  - `delete_passwords` boolean — Whether to delete all passwords associated with the member. Only available when removing other members (not yourself).
  - `delete_service_tokens` boolean — Whether to delete all service tokens associated with the member. Only available when removing other members (not yourself).

## Response `204`

Member removed successfully. Note: Cannot remove the last admin or leave your only organization.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2025-11-14** `5f2529ef1c86` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/planetscale/apis/planetscale-api/changes/organizations/:organization/members/:id/delete.md)

---

[API](https://skmtc.dev/planetscale/apis/planetscale-api.md) · [All operations](https://skmtc.dev/planetscale/apis/planetscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/planetscale/planetscale-api/revisions/477c6ebdabdf/schema)
