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

# Remove Member

> Removes a member from the team

```
DELETE /openapi/memorylake/admin/v1/members/{principal_id}
```

Removes a member. Their API keys in this team are **disabled** (not deleted), so an admin can review or re-issue them from the console.

Guard rails: the team owner cannot be removed, and the calling key cannot remove its own creator (both `409`).

<Note>
  **Permission required:** `member:remove`
</Note>

### Path Parameters

<ParamField path="principal_id" type="string" required>
  Member identifier from the [members list](/features/management-api/members/list-members)
</ParamField>

### Headers

<ParamField header="Idempotency-Key" type="string">
  Optional. Retrying with the same value replays the first result.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://app.memorylake.ai/openapi/memorylake/admin/v1/members/9f2c1a7b3d5e4f60a1b2c3d4e5f60718' \
    -H 'Authorization: Bearer sk-xxxxxx'
  ```
</RequestExample>

### Response

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "message": "Operation completed successfully",
    "data": {}
  }
  ```

  ```json Removing the owner (409) theme={null}
  {
    "success": false,
    "message": "cannot remove the team owner",
    "error_code": "STATE_NOT_READY"
  }
  ```
</ResponseExample>
