Skip to content

Remove a member

DELETE
/members/{userId}
curl --request DELETE \
--url https://example.com/members/example \
--cookie bottle.session_token=<bottle.session_token>

Their account and their history stay; only access to this tenant goes. Admins may not remove an owner, and the last owner cannot be removed.

userId
required
string
>= 1 characters

Removed

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or the role is not allowed to do this

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Would leave the tenant without an owner

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}