Skip to main content
DELETE
/
api
/
auth
/
organizations
/
members
/
{membership_id}
Remove Member
curl --request DELETE \
  --url https://api.example.com/api/auth/organizations/members/{membership_id} \
  --header 'X-Organization-Id: <x-organization-id>'
{
  "success": true,
  "message": "Member removed from organization"
}
Remove a member from your organization. Organization owners cannot be removed, and the last admin cannot be removed without promoting another member to admin first.

Request

membership_id
string
required
The unique identifier of the membership to remove.
X-Organization-Id
string
required
The unique identifier of the organization.

Response

success
boolean
Indicates whether the operation was successful.
message
string
A descriptive message about the operation result.
{
  "success": true,
  "message": "Member removed from organization"
}