IoTSiteWise / Client / delete_asset



Deletes an asset. This action can’t be undone. For more information, see Deleting assets and models in the IoT SiteWise User Guide.


You can’t delete an asset that’s associated to another asset. For more information, see DisassociateAssets.

See also: AWS API Documentation

Request Syntax

response = client.delete_asset(
  • assetId (string) –


    The ID of the asset to delete. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

  • clientToken (string) –

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don’t reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

Return type:



Response Syntax

    'assetStatus': {
        'error': {
            'message': 'string',
            'details': [
                    'message': 'string'

Response Structure

  • (dict) –

    • assetStatus (dict) –

      The status of the asset, which contains a state ( DELETING after successfully calling this operation) and any error message.

      • state (string) –

        The current status of the asset.

      • error (dict) –

        Contains associated error information, if any.

        • code (string) –

          The error code.

        • message (string) –

          The error message.

        • details (list) –

          A list of detailed errors.

          • (dict) –

            Contains detailed error information.

            • code (string) –

              The error code.

            • message (string) –

              The error message.


  • IoTSiteWise.Client.exceptions.InvalidRequestException

  • IoTSiteWise.Client.exceptions.ResourceNotFoundException

  • IoTSiteWise.Client.exceptions.InternalFailureException

  • IoTSiteWise.Client.exceptions.ThrottlingException

  • IoTSiteWise.Client.exceptions.ConflictingOperationException