Removing a table - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Removing a table

In SQL, you use the DROP TABLE statement to remove a table. In Amazon DynamoDB, you use the DeleteTable operation.


When you no longer need a table and want to discard it permanently, you use the DROP TABLE statement in SQL.


After a table is dropped, it cannot be recovered. (Some relational databases do allow you to undo a DROP TABLE operation, but this is vendor-specific functionality and it is not widely implemented.)


DynamoDB has a similar action: DeleteTable. In the following example, the table is permanently deleted.

{ TableName: "Music" }

For code examples that use DeleteTable, see Getting started with DynamoDB and the Amazon SDKs.