DELETE
/organizations/{organization_id}/memberships/{user_id}Remove a member from an organization
Removes the given membership from the organization
organization_idstringrequired
The ID of the organization to which this membership belongs
user_idstringrequired
The ID of the user to which this membership belongs
200Success
idstringrequired
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
rolestringrequired
role_namestringoptional
permissionsarray<string>required
public_metadataobjectrequired
Metadata saved on the organization membership, accessible from both Frontend and Backend APIs
private_metadataobjectoptional
Metadata saved on the organization membership, accessible only from the Backend API
organizationobjectrequired
public_user_dataobjectoptional
An organization membership with public user data populated
created_atintegerrequired
Unix timestamp of creation.
updated_atintegerrequired
Unix timestamp of last update.
401Authentication invalid
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
404Resource not found
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
422Invalid request parameters
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
Error handling
A 401 is returned: Authentication invalid. A 404 is returned: Resource not found. A 422 is returned: Invalid request parameters.