:doc:`IoT <../../iot>` / Client / delete_package_version

**********************
delete_package_version
**********************



.. py:method:: IoT.Client.delete_package_version(**kwargs)

  

  Deletes a specific version from a software package.

   

  **Note:** If a package version is designated as default, you must remove the designation from the software package using the  UpdatePackage action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeletePackageVersion>`_  


  **Request Syntax**
  ::

    response = client.delete_package_version(
        packageName='string',
        versionName='string',
        clientToken='string'
    )
    
  :type packageName: string
  :param packageName: **[REQUIRED]** 

    The name of the associated software package.

    

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

    The name of the target package version.

    

  
  :type clientToken: string
  :param clientToken: 

    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.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.InternalServerException`

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

  