# Unlink a file from a record

Take one link off a file by the link's id (from the file's links), answering the file. The record must still be one the caller can edit. The link with id "pin" is the record the file is filed on, not a link, and is refused with 400 — deleting the file is the way to take it off that record.

Access class: `workspace`.

## Endpoint

`DELETE /v1/files/{id}/links/{linkId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |
| linkId | path | string | Yes |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "contentType": "string",
    "createdAt": "2026-01-01T00:00:00Z",
    "documentType": "string",
    "folderId": "",
    "id": "",
    "landedAt": "2026-01-01T00:00:00Z",
    "landingFailed": true,
    "links": [
      {
        "definitionKey": "string",
        "id": "",
        "label": "string",
        "rowId": ""
      }
    ],
    "name": "string",
    "no_advertising": true,
    "periodEnd": "string",
    "periodStart": "string",
    "rowId": "",
    "sizeBytes": 1,
    "source": "string",
    "sourceDetail": "string",
    "source_provider": "string",
    "starred": true,
    "statementStatus": "string",
    "submissionUnavailableReason": "string",
    "uploadedBy": 1
  }
}
```

### 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"
}
```
