# deleteAsset mutation


`deleteAsset` 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 asset and its image, and returns the asset's MAX id.

- Requires the `company.write` permission, and for a company's asset also the company in your
  API key's legal-entity scope.
- `NOT_FOUND` when the asset does not exist or your API key cannot see it.

## Arguments

- `input`: [`DeleteAssetInput!`](/chameleoon-max/type/delete-asset-input) · required

## Returns

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

## Example

**Mutation**

```graphql
mutation deleteAsset($input: DeleteAssetInput!) {
  deleteAsset(input: $input)
}
```

**Variables**

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

**Response**

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

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