> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Member

> Remove a workspace member from the workspace.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  The API key for your account. You can find this in your [account settings](https://squarecloud.app/en/account/security).
</ParamField>

Removes a member from a workspace, immediately revoking their access to every application shared into it. Only the workspace owner can call this endpoint; a member who wants to remove themselves should use [Leave Workspace](/en/api-reference/endpoint/workspace/leave) instead.

Removing a member does not free up their invite code for reuse: generate a fresh one with [Get Invite Code](/en/api-reference/endpoint/workspace/members/code) if they need to rejoin later. Rate limited to 5 removals per 30 seconds per user.

### Parameters

<ParamField body="workspaceId" type="string" placeholder="Workspace Id">
  The ID of the workspace.
</ParamField>

<ParamField body="memberId" type="string" placeholder="Member ID">
  The member ID.
</ParamField>

### Response

<ResponseField name="status" type="string">
  Indicates whether the call was successful.. `success` if successful, `error` if not.
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status": "success"
  }
  ```
</ResponseExample>

### Common errors

| Code               | HTTP | Meaning                   |
| ------------------ | ---- | ------------------------- |
| `INVALID_ID`       | 400  | `workspaceId` is missing. |
| `MEMBER_NOT_FOUND` | 400  | `memberId` is missing.    |
