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 .
 Declaration Syntax
 Declaration Syntax| C# | 
public DeleteTableResponse DeleteTable( DeleteTableRequest deleteTableRequest )
 Parameters
 Parameters- deleteTableRequest (DeleteTableRequest)
- Container for the necessary parameters to execute the DeleteTable service method on AmazonDynamoDB.
 Return Value
 Return ValueThe response from the DeleteTable service method, as returned by AmazonDynamoDB.
 Examples
 ExamplesThis example shows how to delete a table.
 CopyDeleteTable sample
CopyDeleteTable sample// 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);
 Exceptions
 Exceptions