The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in
the
NOTE: Amazon DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.
When you delete a table, any local secondary indexes on that table are also deleted.
Use the DescribeTable API to check the status of the table.
Inheritance Hierarchy
Namespace: Amazon.DynamoDBv2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class DeleteTableRequest : AmazonWebServiceRequest IRequestEvents
The DeleteTableRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
DeleteTableRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
TableName |
The name of the table to delete.
Constraints: |
Examples
This example shows how to delete a table.
DeleteTable 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);
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8