Step 8: (Optional) Clean Up Resources - Amazon DynamoDB

Step 8: (Optional) Clean Up Resources

If you no longer need the Amazon DynamoDB table that you created for the tutorial, you can delete it. This step helps ensure that you aren't charged for resources that you aren't using. You can use the DynamoDB console or the AWS CLI to delete the Music table that you created in Step 1: Create a Table.

For more information about table operations in DynamoDB, see Working with Tables and Data in DynamoDB.

To delete the Music table using the console:

  1. Open the DynamoDB console at https://console.aws.amazon.com/dynamodb/.

  2. In the navigation pane on the left side of the console, choose Tables.

  3. Choose the Music table from the table list.

  4. Choose the Indexes tab for the Music table.

  5. Choose Delete table.

    
                                Console screenshot showing the Delete table button.

The following AWS CLI example deletes the Music table using delete-table.

aws dynamodb delete-table --table-name Music