:doc:`ElasticsearchService <../../es>` / Client / delete_package

**************
delete_package
**************



.. py:method:: ElasticsearchService.Client.delete_package(**kwargs)

  

  Delete the package.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/DeletePackage>`_  


  **Request Syntax**
  ::

    response = client.delete_package(
        PackageID='string'
    )
    
  :type PackageID: string
  :param PackageID: **[REQUIRED]** 

    Internal ID of the package that you want to delete. Use ``DescribePackages`` to find this value.

    

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

    
    ::

      {
          'PackageDetails': {
              'PackageID': 'string',
              'PackageName': 'string',
              'PackageType': 'TXT-DICTIONARY',
              'PackageDescription': 'string',
              'PackageStatus': 'COPYING'|'COPY_FAILED'|'VALIDATING'|'VALIDATION_FAILED'|'AVAILABLE'|'DELETING'|'DELETED'|'DELETE_FAILED',
              'CreatedAt': datetime(2015, 1, 1),
              'LastUpdatedAt': datetime(2015, 1, 1),
              'AvailablePackageVersion': 'string',
              'ErrorDetails': {
                  'ErrorType': 'string',
                  'ErrorMessage': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Container for response parameters to ``DeletePackage`` operation.

      
      

      - **PackageDetails** *(dict) --* 

        ``PackageDetails``

        
        

        - **PackageID** *(string) --* 

          Internal ID of the package.

          
        

        - **PackageName** *(string) --* 

          User specified name of the package.

          
        

        - **PackageType** *(string) --* 

          Currently supports only TXT-DICTIONARY.

          
        

        - **PackageDescription** *(string) --* 

          User-specified description of the package.

          
        

        - **PackageStatus** *(string) --* 

          Current state of the package. Values are COPYING/COPY_FAILED/AVAILABLE/DELETING/DELETE_FAILED

          
        

        - **CreatedAt** *(datetime) --* 

          Timestamp which tells creation date of the package.

          
        

        - **LastUpdatedAt** *(datetime) --* 
        

        - **AvailablePackageVersion** *(string) --* 
        

        - **ErrorDetails** *(dict) --* 

          Additional information if the package is in an error state. Null otherwise.

          
          

          - **ErrorType** *(string) --* 
          

          - **ErrorMessage** *(string) --* 
      
    
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

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

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

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

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

  