:doc:`Glue <../../glue>` / Client / delete_partition

****************
delete_partition
****************



.. py:method:: Glue.Client.delete_partition(**kwargs)

  

  Deletes a specified partition.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeletePartition>`_  


  **Request Syntax**
  ::

    response = client.delete_partition(
        CatalogId='string',
        DatabaseName='string',
        TableName='string',
        PartitionValues=[
            'string',
        ]
    )
    
  :type CatalogId: string
  :param CatalogId: 

    The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.

    

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

    The name of the catalog database in which the table in question resides.

    

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

    The name of the table that contains the partition to be deleted.

    

  
  :type PartitionValues: list
  :param PartitionValues: **[REQUIRED]** 

    The values that define the partition.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  