---
title: "DELETE /asset-models/{assetModelId}"
method: DELETE
path: "/asset-models/{assetModelId}"
---

# DELETE /asset-models/{assetModelId}

`DELETE /asset-models/{assetModelId}`

Deletes an asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't delete an asset model if a parent asset model exists that contains a property formula expression that depends on the asset model that you want to delete. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/delete-assets-and-models.html">Deleting assets and models</a> in the <i>IoT SiteWise User Guide</i>.

## Path parameters

- `assetModelId` string, required

## Query parameters

- `clientToken` string

## Response `202`

Success

- DeleteAssetModelResponse
  - `assetModelStatus` object, required — The status of the asset model, which contains a state (<code>DELETING</code> after successfully calling this operation) and any error message.
    - `state` 'CREATING' | 'ACTIVE' | 'UPDATING' | 'PROPAGATING' | 'DELETING' | 'FAILED', required — The current state of the asset model.
    - `error` object — Contains associated error information, if any.
      - `code` 'VALIDATION_ERROR' | 'INTERNAL_FAILURE', required — The error code.
      - `message` string, required — The error message.
      - `details` DetailedError[] — A list of detailed errors.
        - `code` 'INCOMPATIBLE_COMPUTE_LOCATION' | 'INCOMPATIBLE_FORWARDING_CONFIGURATION', required — The error code.
        - `message` string, required — The error message.

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceNotFoundException
- `482` — InternalFailureException
- `483` — ThrottlingException
- `484` — ConflictingOperationException

---

[API](https://skmtc.net/aws/apis/iotsitewise.md) · [All operations](https://skmtc.net/aws/apis/iotsitewise/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iotsitewise/versions/d13e5d3e0a6f/schema)
