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

********************
delete_table_version
********************



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

  

  Deletes a specified version of a table.

  

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


  **Request Syntax**
  ::

    response = client.delete_table_version(
        CatalogId='string',
        DatabaseName='string',
        TableName='string',
        VersionId='string'
    )
    
  :type CatalogId: string
  :param CatalogId: 

    The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.

    

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

    The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

    

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

    The name of the table. For Hive compatibility, this name is entirely lowercase.

    

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

    The ID of the table version to be deleted. A ``VersionID`` is a string representation of an integer. Each version is incremented by 1.

    

  
  
  :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`

  