06-DeleteTable.cs - Amazon DynamoDB

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

06-DeleteTable.cs

06-DeleteTable.cs 程式會刪除 TryDaxTable。請在完成測試之後執行此程式。

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