# Stop sharing it (/docs/api-reference/remove_access)

`DELETE /v1/access` · operation `remove_access`

Stops sharing a Room, folder, Room file, task or goal with someone. Needs Full access on the Room (a task or goal: also whoever made it). Requires explicit user intent.

**Sign-in:** a signed-in person's access token (`Authorization: Bearer …`), which AI apps get through MCP sign-in; or a Workspace API key in the `X-SMB-API-Key` header.

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `SMB-Workspace-Id` | string (uuid) | yes | Workspace where this operation runs. Required for user tokens and Workspace API keys. |
| `Idempotency-Key` | string | yes |  |

### Request body (JSON)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object_type` | one of `room`, `room_folder`, `room_file`, `file`, `task`, `goal` | yes | What to share: a Room, a folder, a Room file, a File, a task or a goal. |
| `object_id` | string | yes | Its ID: rom_, rfd_, rfl_, fil_, tsk_ or gol_. |
| `to` | object or object or object or object | yes | Who: a person by email or account, a Workspace you are in, or (tasks and goals) everyone in their Room. |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `removed` | `true` | yes |  |
| `request_id` | string | yes |  |

### Errors

- `400` The request is invalid.
- `401` Authentication is required.
- `403` The caller is not authorized.
- `404` The resource was not found.
- `409` The resource revision or idempotency input conflicts.
- `413` The request body is too large.
- `415` The request must be JSON.
- `422` Required evidence is missing.
- `429` Rate limit reached; honor Retry-After.
- `500` The request could not be completed.
- `502` A dependency returned an invalid response.
- `503` The service is temporarily unavailable.

### Example

```bash
curl --request DELETE "https://api.smb.co/v1/access" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID" \
  --header "Idempotency-Key: $IDEMPOTENCY_KEY" \
  --header "Content-Type: application/json" \
  --data '{"object_type":"room","object_id":"…","to":"…"}'
```