> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteConversionPreset

> Deletes a conversion preset, removes its conversion property from every source, and returns the deleted preset. Expected failures come back in the payload's `errors` list, not as top-level GraphQL errors, each with a `code` naming the failure: `ConflictError` while a card definition, archived ones included, binds that conversion property on a source, and the preset stays; `NotFoundError` for an unknown or already deleted preset.



**mutation** `deleteConversionPreset(input: DeleteConversionPresetInput!): DeleteConversionPresetPayload!`

## Arguments

**`input`**: `DeleteConversionPresetInput!` (required)

## Returns

`DeleteConversionPresetPayload!`

**`conversionPreset`**: `ConversionPreset`

---

**`errors`**: `[DeleteConversionPresetError!]`

## Examples

```graphql Mutation
mutation DeleteConversionPreset($input: DeleteConversionPresetInput!) {
  deleteConversionPreset(input: $input) {
    conversionPreset {
      createdAt
      displayName
      id
      parameters {
        aspectRatio
        background
        mode
        outputFormat
        paddingPercent
        quality
      }
      presetId
      updatedAt
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "deleteConversionPreset": {
      "conversionPreset": {
        "createdAt": "value",
        "displayName": "string",
        "id": "id",
        "parameters": {
          "aspectRatio": "string",
          "background": "string",
          "mode": "FIT",
          "outputFormat": "JPG",
          "paddingPercent": 1,
          "quality": 1
        },
        "presetId": "string",
        "updatedAt": "value"
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.