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

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the organization

team
string
required

The slug of the team

id
string
required

The ID of the team membership or the ID of the member to remove

Body

application/json
delete_passwords
boolean

Whether to delete the member's passwords created through this team

Response

Member removed successfully. Note: SSO-managed teams cannot have members removed.