# deleteLibraryFile

Take a file out of the library for good (its name and description go). The upload itself stays, and templates that attach it keep working.

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

## Variables

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

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "deleteLibraryFile": {
      "libraryFiles": [
        {
          "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": "deleteLibraryFile",
    "variables": {
      "fileId": "<fileId>"
    }
  }'
```
