Skip to main content
DELETE
https://api.bunship.com
/
api
/
v1
/
organizations
/
{orgId}
/
members
/
{memberId}
Remove Member
curl --request DELETE \
  --url https://api.bunship.com/api/v1/organizations/{orgId}/members/{memberId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Member removed successfully"
}
Removes a member from the organization. You cannot remove the organization owner (transfer ownership first) or yourself (use “leave organization” instead). Requires the members:remove permission.

Auth

Requires a valid Bearer token with members:remove permission.

Path Parameters

orgId
string
required
Organization identifier.
memberId
string
required
Membership identifier of the member to remove.

Response

message
string
Confirmation message.
{
  "message": "Member removed successfully"
}

Errors

StatusCodeDescription
400VALIDATION_ERRORCannot remove the owner or yourself
401AUTHENTICATION_ERRORMissing or invalid Bearer token
403AUTHORIZATION_ERRORInsufficient permissions (members:remove required)
404NOT_FOUNDMember not found in this organization

Example

curl -X DELETE https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/members/mbr_def456 \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."