Remove User changedapi/organization/users/remove
Nearest release: v2.1.328, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+18added
Lines−0removed
From line
37
where the diff opens
First seen
30 Sep 2026
this site's first read of the page
Recorded edits7to this page, all time
## Errors
The whole hunk
from line 37, old and new numbered
/
from line 37
3737
3838 ID of the User.
3939
40## Errors
41
42Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
43
44Each code below is the value of `error.details.error_code` in the response body.
45
46- `cannot_remove_last_member` (HTTP status 400)
47
48 The user is the organization's only member. Add another member before removing this one.
49
50- `sandbox_egress_restricted` (HTTP status 403)
51
52 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
53
54- `concurrent_membership_change` (HTTP status 409)
55
56 Another change to the organization's members is in progress. Retry the request once it completes.
57
4058## Example
4159
4260```bash
No line in this hunk matches that.