# Delete A Contact

> Solarium docs, Contacts. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

Deletes a contact nothing uses. Refused while any invoice, entry, journal line, receipt or payment's bank line points at it.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationId` | `UUID!` | Yes | Organization ID |
| `name` | `String!` | Yes | "delete_contact" |
| `params.contact_id` | `String!` | Yes | The contact |
| `apply` | `Boolean` | No | true to delete |

### Request

```graphql
mutation {
  runOp(organizationId: "a1b2c3d4-...", name: "delete_contact", apply: true, params: { contact_id: "c3d4e5f6-..." }) {
    success applied result error
  }
}
```

### Response

```json
{
  "data": {
    "runOp": { "success": false, "error": "North Group Ltd Is Still On 2 invoices. Merge It Into Another Contact With merge_contacts." }
  }
}
```
