---
title: "Remove Organization Member"
method: DELETE
path: "/api/v1/organizations/members/{user_id}"
tags: ["Team Management"]
---

# Remove Organization Member

`DELETE /api/v1/organizations/members/{user_id}`

## Request

- Base URL: `https://api.athenahq.ai`
- URL: `https://api.athenahq.ai/api/v1/organizations/members/{user_id}`
- Auth: API key in header `x-api-key`

Removes a user from your organization. Also cleans up any stray website_members rows for that user across all websites in the organization within a single transaction. Requires a global API key. Cannot remove the API key's owning user, the organization owner, or the last remaining admin.

## Response `200`

Member removed successfully

- object
  - `success` boolean, required
  - `message` string, required
  - `websites_affected` integer, required: Number of stray website_members rows that were cleaned up as part of the cascade.

## Other responses

- `400`: Bad request - Invalid user ID format
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - Not a global key, self-modification, or owner modification
- `404`: Not found - Organization member does not exist
- `409`: Conflict - Cannot remove the last remaining admin
- `500`: Internal server error

---

[API](https://skmtc.dev/athenahq/apis/athenahq-api.md) - [All operations](https://skmtc.dev/athenahq/apis/athenahq-api/llms.txt) - [OpenAPI document](https://skmtc.dev/athenahq/apis/athenahq-api/revisions/6cf9ca58edf6?raw)
