# deletePrintTemplate mutation


`deletePrintTemplate` is a GraphQL mutation of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Deletes the print template and returns its MAX id. When it was the default, the MAX built-in
template prints in its place.

Requires the `company.write` permission on an API key that no legal-entity scope narrows.
`NOT_FOUND` when the template does not exist.

## Arguments

- `input`: [`DeletePrintTemplateInput!`](/chameleoon-max/type/delete-print-template-input) · required

## Returns

[`UUID!`](/chameleoon-max/type/uuid)

## Example

**Mutation**

```graphql
mutation deletePrintTemplate($input: DeletePrintTemplateInput!) {
  deletePrintTemplate(input: $input)
}
```

**Variables**

```json
{
  "input": {
    "id": "00000000-0000-4000-8000-000000000001"
  }
}
```

**Response**

```json
{
  "data": {
    "deletePrintTemplate": "00000000-0000-4000-8000-000000000001"
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
