Remove Member

POST/openapi/v1/members/delete

Remove a member from the current Space. The member is located by Email.

Removal restrictions: Only disabled members can be removed; call Enable/Disable Member to disable the member first.

Permission: The operator must be a Space administrator. The owner can operate on any member; other administrators can only operate on Sender (sender) members.

Console equivalent: Members → Remove.

Required Scope: member:manage


Request Parameters

AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID. Not required in authorization_code mode (the authorized user is used automatically); **required** in client_credentials mode. The operator must be an administrator of the current Space.
application/json
EmailRequiredstring
Member email, case-insensitive.

Response Parameters

UserIdOptionalstring
Platform user ID of the removed member; empty string if the member never joined the Space.
EmailOptionalstring
Email of the removed member.

Response Example

{
  "Response": {
    "RequestId": "req-abc123",
    "Error": null,
    "Data": {
      "UserId": "SGUR4Kp9mN2vX7qR1tY8wZ3bC5",
      "Email": "user@example.com"
    }
  }
}

Error Codes

Error CodeDescription
INVALID_REQUESTInvalid parameters (empty Email)
OPENAPI.OPERATOR_USER_ID_REQUIREDX-Operator-User-Id is missing in client_credentials mode
OPENAPI.OPERATOR_USER_NOT_FOUNDOperator does not exist, the account is inactive, or the operator is not an enabled member of the current Space
OPENAPI.OPERATOR_USER_NOT_HUMANOperator is not a human user
MEMBER.INSUFFICIENT_PERMISSIONOperator is not a Space administrator, or has no permission on the target member
MEMBER.NOT_FOUNDTarget member does not exist
STATUS.OPERATION_NOT_ALLOWEDMember is not in disabled status
INTERNAL_ERRORInternal server error