Amazon DynamoDB
Getting Started Guide (API Version 2012-08-10)

Step 8: Clean Up

In this step, you use the DeleteTable API operation to remove the table. When you do this, the Music table, GenreAndPriceIndex, and all of the data is permanently deleted. This operation cannot be undone.

To delete the table

  1. Replace everything in the left side of the DynamoDB JavaScript shell window with the following code:

    var params = {
        TableName: "Music"
    dynamodb.deleteTable(params, function(err, data) {
        if (err)
            console.log(JSON.stringify(err, null, 2));
            console.log(JSON.stringify(data, null, 2));
  2. Click the play button arrow to run the code to delete the table.

The table is deleted immediately.

Next Step