Deletes a table and all of its items.
If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states then Amazon DynamoDB returns a ResourceInUseException . If the specified table does not exist, Amazon DynamoDB returns a ResourceNotFoundException .

C# |
DeleteTableResponse DeleteTable( DeleteTableRequest deleteTableRequest )

- deleteTableRequest (DeleteTableRequest)
- Container for the necessary parameters to execute the DeleteTable service method on AmazonDynamoDB.

The response from the DeleteTable service method, as returned by AmazonDynamoDB.

This example shows how to delete a table.

// Create a client AmazonDynamoDBClient client = new AmazonDynamoDBClient(); // Configure the DeleteTable request DeleteTableRequest request = new DeleteTableRequest { TableName = "SampleTable" }; // Issue DeleteTable request and retrieve the table description TableDescription tableDescription = client.DeleteTable(request).DeleteTableResult.TableDescription; Console.WriteLine("Table name: {0}", tableDescription.TableName); Console.WriteLine("Table status: {0}", tableDescription.TableStatus);
