:doc:`DataZone <../../datazone>` / Client / delete_asset_type

*****************
delete_asset_type
*****************



.. py:method:: DataZone.Client.delete_asset_type(**kwargs)

  

  Deletes an asset type in Amazon DataZone.

   

  Prerequisites:

   

  
  * The asset type must exist in the domain.
   
  * You must have DeleteAssetType permission.
   
  * The asset type must not be in use (e.g., assigned to any asset). If used, deletion will fail.
   
  * You should retrieve the asset type using get-asset-type to confirm its presence before deletion.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/DeleteAssetType>`_  


  **Request Syntax**
  ::

    response = client.delete_asset_type(
        domainIdentifier='string',
        identifier='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which the asset type is deleted.

    

  
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The identifier of the asset type that is deleted.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DataZone.Client.exceptions.ThrottlingException`

  
  *   :py:class:`DataZone.Client.exceptions.ConflictException`

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  