06-DeleteTable.cs - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


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

// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 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(); } } }