public void PollyDeleteLexicon() { #region to-delete-a-lexicon-1481922498332 var client = new AmazonPollyClient(); var response = client.DeleteLexicon(new DeleteLexiconRequest { Name = "example" }); #endregion }
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); } }