AWS Code Sample
Catalog

DeleteLexiconSample.cs

DeleteLexiconSample.cs demonstrates how to delete an existing lexicon.

using System; using Amazon.Polly; using Amazon.Polly.Model; namespace PollySamples1 { class DeleteLexiconSample { public static void DeleteLexicon() { String LEXICON_NAME = "SampleLexicon"; var client = new AmazonPollyClient(); var deleteLexiconRequest = new DeleteLexiconRequest() { Name = LEXICON_NAME }; try { client.DeleteLexicon(deleteLexiconRequest); } catch (Exception e) { Console.WriteLine("Exception caught: " + e.Message); } } } }

Sample Details

Service: polly

Author: AWS

Type: full-example

On this page: