:doc:`LicenseManager <../../license-manager>` / Client / delete_license

**************
delete_license
**************



.. py:method:: LicenseManager.Client.delete_license(**kwargs)

  

  Deletes the specified license.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicense>`_  


  **Request Syntax**
  ::

    response = client.delete_license(
        LicenseArn='string',
        SourceVersion='string'
    )
    
  :type LicenseArn: string
  :param LicenseArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) of the license.

    

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

    Current version of the license.

    

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

    
    ::

      {
          'Status': 'PENDING_DELETE'|'DELETED',
          'DeletionDate': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(string) --* 

        License status.

        
      

      - **DeletionDate** *(string) --* 

        Date when the license is deleted.

        
  
  **Exceptions**
  
  *   :py:class:`LicenseManager.Client.exceptions.ValidationException`

  
  *   :py:class:`LicenseManager.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`LicenseManager.Client.exceptions.RedirectException`

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

  
  *   :py:class:`LicenseManager.Client.exceptions.ServerInternalException`

  
  *   :py:class:`LicenseManager.Client.exceptions.AuthorizationException`

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

  
  *   :py:class:`LicenseManager.Client.exceptions.RateLimitExceededException`

  