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

**************************
batch_delete_table_version
**************************



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

  

  Deletes a specified batch of versions of a table.

  

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


  **Request Syntax**
  ::

    response = client.batch_delete_table_version(
        CatalogId='string',
        DatabaseName='string',
        TableName='string',
        VersionIds=[
            '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 VersionIds: list
  :param VersionIds: **[REQUIRED]** 

    A list of the IDs of versions to be deleted. A ``VersionId`` is a string representation of an integer. Each version is incremented by 1.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Errors': [
              {
                  'TableName': 'string',
                  'VersionId': 'string',
                  'ErrorDetail': {
                      'ErrorCode': 'string',
                      'ErrorMessage': 'string'
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Errors** *(list) --* 

        A list of errors encountered while trying to delete the specified table versions.

        
        

        - *(dict) --* 

          An error record for table-version operations.

          
          

          - **TableName** *(string) --* 

            The name of the table in question.

            
          

          - **VersionId** *(string) --* 

            The ID value of the version in question. A ``VersionID`` is a string representation of an integer. Each version is incremented by 1.

            
          

          - **ErrorDetail** *(dict) --* 

            The details about the error.

            
            

            - **ErrorCode** *(string) --* 

              The code associated with this error.

              
            

            - **ErrorMessage** *(string) --* 

              A message describing the error.

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

  