# deleteTaskOnDeal

deleteTask ONLY for a row whose contact is null, by taskId + its dealId; refused like updateTaskOnDeal for a contact (use deleteTask), an appointment (deleteAppointment) or a task the non-admin key is not on. Same rules.

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

## Variables

- `taskId`: `ID!` (required)
- `dealId`: `ID!` (required)

## Response (data, an example)

```json
{
  "tasksMutation": {
    "deleteTaskOnDeal": {
      "id": "<ID>",
      "tasks": [
        {
          "id": "<ID>",
          "title": "…"
        }
      ]
    }
  }
}
```

## 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": "deleteTaskOnDeal",
    "variables": {
      "taskId": "<taskId>",
      "dealId": "<dealId>"
    }
  }'
```
