06-DeleteTable.cs - Amazon DynamoDB
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

06-DeleteTable.cs

The 06-DeleteTable.cs program deletes TryDaxTable. Run this program after you have finished testing.

using System; using System.Threading.Tasks; using Amazon.DynamoDBv2.Model; using Amazon.DynamoDBv2; namespace ClientTest { class Program { public static async Task Main(string[] args) { AmazonDynamoDBClient client = new AmazonDynamoDBClient(); var tableName = "TryDaxTable"; var request = new DeleteTableRequest() { TableName = tableName }; var response = await client.DeleteTableAsync(request); Console.WriteLine("Hit <enter> to continue..."); Console.ReadLine(); } } }