06-DeleteTable.cs - Amazon DynamoDB

06-DeleteTable.cs

El programa 06-DeleteTable.cs elimina TryDaxTable. Ejecute este programa después de haber terminado las pruebas.

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(); } } }