Skip to main content
DELETE
/
organizations
/
{organization}
/
members
/
{id}
Remove a member from an organization
curl --request DELETE \
  --url https://api.planetscale.com/v1/organizations/{organization}/members/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delete_passwords": true,
  "delete_service_tokens": true
}
'

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organization
string
required

The name of the organization

id
string
required

The ID of the user

Body

application/json
delete_passwords
boolean

Whether to delete all passwords associated with the member. Only available when removing other members (not yourself).

delete_service_tokens
boolean

Whether to delete all service tokens associated with the member. Only available when removing other members (not yourself).

Response

Member removed successfully. Note: Cannot remove the last admin or leave your only organization.