Menu
Amazon DynamoDB
Developer Guide (API Version 2012-08-10)

Removing a Table

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

SQL

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

DROP TABLE Music;

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

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

{
    TableName: "Music"
}

Note

For code samples using DeleteTable, see the Amazon DynamoDB Getting Started Guide.