# Remove storage-accounts id

Detaches one of the workspace's connected file stores by its id, so new documents stop landing there. Answers `removed` and a teardown `note` — the shape disconnecting a mailbox answers, kept alike so the app reads one; a file store is polled, so there is no subscription to tear down and the note is empty. Files already stored are not touched. A workspace admin's.

Access class: `workspace`.

## Endpoint

`DELETE /v1/storage-accounts/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "note": "string",
    "removed": true
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
