AWS SDK for .NET Documentation
DeleteTableRequest Class
AmazonAmazon.DynamoDB.ModelDeleteTableRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the DeleteTable operation.

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
C#
public class DeleteTableRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeleteTableRequest()()()()
Initializes a new instance of the DeleteTableRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
TableName
The name of the table you want to delete. Allowed characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and . (period).

Constraints:

Length
3 - 255
Pattern
[a-zA-Z0-9_.-]+


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithTableName(String) Obsolete.
Sets the TableName property

Examples

This example shows how to delete a table.

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);
Inheritance Hierarchy
Object
AmazonWebServiceRequest
 DeleteTableRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)