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

************************************
delete_bucket_metadata_configuration
************************************



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

  

  Deletes an 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 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.

    

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

   

  .. note::

    

    The IAM policy action name is the same for the V1 and V2 API operations.

    

     

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

   

  
  * `CreateBucketMetadataConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html>`__
   
  * `GetBucketMetadataConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html>`__
   
  * `UpdateBucketMetadataInventoryTableConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataInventoryTableConfiguration.html>`__
   
  * `UpdateBucketMetadataJournalTableConfiguration <https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataJournalTableConfiguration.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/DeleteBucketMetadataConfiguration>`_  


  **Request Syntax**
  ::

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

    The general purpose bucket that you want to remove the metadata 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