---
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

## Query parameters

- `delete_passwords` boolean
- `delete_service_tokens` boolean

## 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

- **2026-06-01** `72506953f367` — 1 breaking, 2 info
  - removed the request body
  - added the new optional `query` request parameter `delete_passwords`
  - added the new optional `query` request parameter `delete_service_tokens`
- **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/6d28c038c4fd/schema)
