

# Deleting metadata table configurations
<a name="metadata-tables-delete-configuration"></a>

If you want to stop updating the metadata table configuration for an Amazon S3 general purpose bucket, you can delete the metadata table configuration that's attached to your bucket. Deleting a metadata table configuration deletes only the configuration. The Amazon managed table bucket and your metadata tables still exist, even if you delete the metadata table configuration. However, the metadata tables will no longer be updated.

**Note**  
If you delete your metadata table configuration and want to re-create a configuration for the same general purpose bucket, you must first manually delete the old journal and inventory tables from your Amazon managed table bucket. Otherwise, creating the new metadata table configuration fails because those tables already exist. To delete your metadata tables, see [Deleting metadata tables](metadata-tables-delete-table.md). 

To delete your metadata tables, see [Delete a metadata table](metadata-tables-delete-table.md#delete-metadata-table-procedure). To delete your table bucket, see [Deleting table buckets](https://docs.amazonaws.cn/AmazonS3/latest/userguide/s3-tables-buckets-delete.html) and [https://docs.amazonaws.cn/AmazonS3/latest/API/API_s3TableBuckets_DeleteTableBucket.html](https://docs.amazonaws.cn/AmazonS3/latest/API/API_s3TableBuckets_DeleteTableBucket.html) in the *Amazon S3 API Reference*. 

You can delete a metadata table configuration by using the Amazon S3 console, the Amazon Command Line Interface (Amazon CLI), the Amazon SDKs, or the Amazon S3 REST API.

## Delete a metadata table configuration
<a name="delete-metadata-config-procedure"></a>

### Using the S3 console
<a name="delete-metadata-config-console"></a>

**To delete a metadata table configuration**

1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at [https://console.amazonaws.cn/s3/](https://console.amazonaws.cn/s3/).

1. In the left navigation pane, choose **General purpose buckets**.

1. Choose the general purpose bucket that you want to remove a metadata table configuration from. 

1. On the bucket's details page, choose the **Metadata** tab. 

1. On the **Metadata** tab, choose **Delete**.

1. In the **Delete metadata configuration** dialog box, enter **confirm** to confirm that you want to delete the configuration. Then choose **Delete**. 

### Using the Amazon CLI
<a name="delete-metadata-config-cli"></a>

To run the following commands, you must have the Amazon CLI installed and configured. If you don’t have the Amazon CLI installed, see [Install or update to the latest version of the Amazon CLI](https://docs.amazonaws.cn//cli/latest/userguide/getting-started-install.html) in the *Amazon Command Line Interface User Guide*.

Alternatively, you can run Amazon CLI commands from the console by using Amazon CloudShell. Amazon CloudShell is a browser-based, pre-authenticated shell that you can launch directly from the Amazon Web Services Management Console. For more information, see [What is CloudShell?](https://docs.amazonaws.cn//cloudshell/latest/userguide/welcome.html) and [Getting started with Amazon CloudShell](https://docs.amazonaws.cn//cloudshell/latest/userguide/getting-started.html) in the *Amazon CloudShell User Guide*.

**To delete a metadata table configuration by using the Amazon CLI**

To use the following example commands, replace the `{{user input placeholders}}` with your own information. 

1. Use the following command to delete the metadata table configuration from your general purpose bucket (for example, `{{amzn-s3-demo-bucket}}`):

   ```
   aws s3api delete-bucket-metadata-configuration \
   --bucket {{amzn-s3-demo-bucket}} \
   --region {{us-east-2}}
   ```

1. To verify that the configuration was deleted, use the following command:

   ```
   aws s3api get-bucket-metadata-configuration \
   --bucket {{amzn-s3-demo-bucket}} \
   --region {{us-east-2}}
   ```

### Using the REST API
<a name="delete-metadata-config-rest-api"></a>

You can send REST requests to delete a metadata table configuration. For more information, see [https://docs.amazonaws.cn/AmazonS3/latest/API/API_DeleteBucketMetadataConfiguration.html](https://docs.amazonaws.cn/AmazonS3/latest/API/API_DeleteBucketMetadataConfiguration.html).

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

### Using the Amazon SDKs
<a name="delete-metadata-config-sdk"></a>

You can use the Amazon SDKs to delete a metadata table configuration in Amazon S3. For information, see the [list of supported SDKs](https://docs.amazonaws.cn/AmazonS3/latest/API/API_DeleteBucketMetadataConfiguration.html#API_DeleteBucketMetadataConfiguration_SeeAlso).