---
title: "Detach a Workspace agent"
method: DELETE
path: "/v1/workspaces/{workspaceID}/members/{memberID}"
---

# Detach a Workspace agent

`DELETE /v1/workspaces/{workspaceID}/members/{memberID}`

## Request

- Base URL: `https://api.plori.ai`
- URL: `https://api.plori.ai/v1/workspaces/{workspaceID}/members/{memberID}`
- Auth: HTTP bearer

Owner-only. Detachment cancels the agent runs in this Workspace. The current manager and canonical storage identity cannot be detached.

## Path parameters

- `workspaceID` string, uuid, required
- `memberID` string, uuid, required

## Response `202`

Agent detached. Revocation continues until executor and mount cleanup completes.

- WorkspaceAgentBinding
  - `workspace_id` string, uuid, required
  - `agent_id` string, uuid, required
  - `role` 'canonical_anchor' | 'manager' | 'member', required
  - `detached` boolean, required
  - `revocation_pending` boolean, required

## Other responses

- `400`: Malformed request.
- `401`: Missing or invalid credential.
- `403`: Only the account owner can remove agent bindings.
- `404`: No such resource.
- `409`: The canonical storage identity or current manager cannot be detached.
- `500`: Internal error with request_id.

---

[API](https://skmtc.dev/plori/apis/plori-rest-api.md) · [All operations](https://skmtc.dev/plori/apis/plori-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plori/apis/plori-rest-api/revisions/15c4f9260dff?raw)
