# deleteForm

HARD-DELETE a lead-capture form by id. IRREVERSIBLE and CASCADING - this also permanently removes ALL of the form's submissions, events, and viewer/lead history. To turn a form off without losing data, use updateForm(status: INACTIVE) instead. Returns true on success.

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

## Variables

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

## Response (data, an example)

```json
{
  "embedFormMutation": {
    "delete": true
  }
}
```

## 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": "deleteForm",
    "variables": {
      "formId": "<formId>"
    }
  }'
```
