# removePipelineItemFile

Detach one file from a pipeline item by fileId (fileIds come from listPipelineItemFiles). This removes the link only: the underlying stored file/bytes are not deleted. Removing a file that is not on the pipeline item, or already removed, is a no-op. Returns the pipeline item id. The pipeline item must be in a pipeline owned by or shared with your organization.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "removePipelineItemFile", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `pipelineItemId`: `ID!` (required)
- `fileId`: `ID!` (required)

## Response (data, an example)

```json
{
  "pipelineItemMutation": {
    "removePipelineItemFiles": {
      "id": "<ID>"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "removePipelineItemFile",
    "variables": {
      "pipelineItemId": "<pipelineItemId>",
      "fileId": "<fileId>"
    }
  }'
```
