:doc:`S3 <../../s3>` / Client / delete_bucket_metadata_table_configuration

******************************************
delete_bucket_metadata_table_configuration
******************************************



.. py:method:: S3.Client.delete_bucket_metadata_table_configuration(**kwargs)

  

  .. warning::

    

    We recommend that you delete your S3 Metadata configurations by using the V2 `DeleteBucketMetadataTableConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketMetadataTableConfiguration.html>`__ API operation. We no longer recommend using the V1 ``DeleteBucketMetadataTableConfiguration`` API operation.

     

    If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using `CreateBucketMetadataConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html>`__ so that you can expire journal table records and create a live inventory table.

     

   

  Deletes a V1 S3 Metadata configuration from a general purpose bucket. For more information, see `Accelerating data discovery with S3 Metadata <https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html>`__ in the *Amazon S3 User Guide*.

   

  .. note::

    

    You can use the V2 ``DeleteBucketMetadataConfiguration`` API operation with V1 or V2 metadata table configurations. However, if you try to use the V1 ``DeleteBucketMetadataTableConfiguration`` API operation with V2 configurations, you will receive an HTTP ``405 Method Not Allowed`` error.

     

    Make sure that you update your processes to use the new V2 API operations ( ``CreateBucketMetadataConfiguration``, ``GetBucketMetadataConfiguration``, and ``DeleteBucketMetadataConfiguration``) instead of the V1 API operations.

    

    Permissions  

  To use this operation, you must have the ``s3:DeleteBucketMetadataTableConfiguration`` permission. For more information, see `Setting up permissions for configuring metadata tables <https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html>`__ in the *Amazon S3 User Guide*.

     

  The following operations are related to ``DeleteBucketMetadataTableConfiguration``:

   

  
  * `CreateBucketMetadataTableConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataTableConfiguration.html>`__
   
  * `GetBucketMetadataTableConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataTableConfiguration.html>`__
  

   

  .. warning::

     

    You must URL encode any signed header values that contain spaces. For example, if your header value is ``my file.txt``, containing two spaces after ``my``, you must URL encode this value to ``my%20%20file.txt``.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetadataTableConfiguration>`_  


  **Request Syntax**
  ::

    response = client.delete_bucket_metadata_table_configuration(
        Bucket='string',
        ExpectedBucketOwner='string'
    )
    
  :type Bucket: string
  :param Bucket: **[REQUIRED]** 

    The general purpose bucket that you want to remove the metadata table configuration from.

    

  
  :type ExpectedBucketOwner: string
  :param ExpectedBucketOwner: 

    The expected bucket owner of the general purpose bucket that you want to remove the metadata table configuration from.

    

  
  
  :returns: None