# removeContactFiles

Take files off a contact's Files & Photos by file id (a Library filing's `uploadedFileId`, or a `files[].id`), as the Files card's delete does. Returns the files the contact still has.

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

## Variables

- `contactId`: `String!` (required)
- `fileIds`: `[String!]!` (required)

## Response (data, an example)

```json
{
  "contactMutation": {
    "updateContact": {
      "id": "<ID>",
      "files": [
        {
          "id": "<ID>",
          "fileName": "…"
        }
      ]
    }
  }
}
```

## 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": "removeContactFiles",
    "variables": {
      "contactId": "<String>",
      "fileIds": [
        "<String>"
      ]
    }
  }'
```
