# deleteTasks

deleteTask for many: items [{ id: taskId, contactId }] (up to 200), each task on its own contact; returns deletedCount. Same rules: no undo. List them; needs their yes (Ask Goliath: bulk card). An appointment is refused (deleteAppointment).

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

## Variables

- `items`: `[DeleteTaskInput!]!` (required)
  - `id`: `String!` (required)
  - `contactId`: `String!` (required)

## Response (data, an example)

```json
{
  "tasksMutation": {
    "deletedCount": 0
  }
}
```

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