

# Delete an Amazon S3 Storage Lens for Tables dashboard

You can delete an Amazon S3 Storage Lens for Tables configuration to permanently stop collecting metrics for the table buckets in its scope. If you want to stop collecting metrics temporarily without losing the configuration, disable it instead. See [Disable an Amazon S3 Storage Lens for Tables dashboard](s3-tables-storage-lens-disabling.md).

Deleting a dashboard removes access to its historical data. To regain access, create a dashboard with the same name in the same home AWS Region. Deleting a dashboard doesn't delete metrics that were already exported to your general purpose bucket or table bucket. You manage the lifecycle of those exports.

## Using the S3 console
<a name="s3-tables-storage-lens-console-deleting"></a>

Use the following steps to delete an Amazon S3 Storage Lens for Tables dashboard on the Amazon S3 console.

**Important**  
This action can't be undone. To stop collecting metrics temporarily, disable the dashboard instead. The default dashboard (`default-account-dashboard-table`) can't be deleted.

**To delete an Amazon S3 Storage Lens for Tables dashboard**

1. Sign in to the AWS Management Console and open the Amazon S3 console at [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/).

1. In the left navigation pane, choose **Storage Lens**, and then choose the **Table buckets** tab.

1. In the list of dashboards, choose the dashboard that you want to delete, and then choose **Delete**.
**Note**  
You can't delete the default dashboard (`default-account-dashboard-table`). You can disable it instead. For more information, see [Disable an Amazon S3 Storage Lens for Tables dashboard](s3-tables-storage-lens-disabling.md).

1. In the **Delete** dialog box, to confirm the deletion, type the name of the dashboard, and then choose **Delete**.

## Using the AWS CLI
<a name="s3-tables-storage-lens-cli-deleting"></a>

**Important**  
This action can't be undone. To stop collecting metrics temporarily, disable the dashboard instead. The default dashboard (`default-account-dashboard-table`) can't be deleted.

**Example**  
The following example command deletes an Amazon S3 Storage Lens for Tables configuration. To use this example, replace the `{{user input placeholders}}` with your own information.  

```
aws s3tables delete-storage-lens-configuration --storage-lens-id={{your-configuration-id}}
```

## Using the AWS SDK for Java
<a name="s3-tables-storage-lens-java-deleting"></a>

The following example deletes an Amazon S3 Storage Lens for Tables configuration in SDK for Java. To use this example, replace the `{{user input placeholders}}` with your own information.

**Important**  
This action can't be undone. To stop collecting metrics temporarily, disable the dashboard instead. The default dashboard (`default-account-dashboard-table`) can't be deleted.

**Example – Delete an Amazon S3 Storage Lens for Tables configuration**  

```Java
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3tables.S3TablesClient;
import software.amazon.awssdk.services.s3tables.model.DeleteStorageLensConfigurationRequest;

public class DeleteStorageLensConfiguration {

    public static void main(String[] args) {
        try (S3TablesClient s3TablesClient = S3TablesClient.builder()
                .region(Region.{{US_EAST_1}})
                .build()) {

            s3TablesClient.deleteStorageLensConfiguration(DeleteStorageLensConfigurationRequest.builder()
                    .storageLensId("{{your-configuration-id}}")
                    .build());
        }
    }
}
```