Remove User
api/admin/users/delete
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/users/delete Changed · +8 / -13 lines
# Remove User ## Path parameters ## Returns ## Example ### Response (200) ## Remove User ### Path Parameters ### Returns ### Example #### Response
---- -title: Remove User -url: https://platform.claude.com/docs/en/api/admin/users/delete ---- +# Remove User -## Remove User +**DELETE** `/v1/organizations/users/{user_id}` -**delete** `/v1/organizations/users/{user_id}` - For Claude Enterprise organizations, this endpoint's availability is in beta. -### Path Parameters +## Path parameters - `user_id: string` ID of the User. -### Returns +## Returns - `id: string`
For Users, this is always `"user_deleted"`. - - `"user_deleted"` + default: user_deleted -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/users/$USER_ID \ -X DELETE \ -H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" ``` -#### Response +### Response (200) ```json {