Using the DeleteLexicon Operation - Amazon Polly
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).

Using the DeleteLexicon Operation

Amazon Polly provides the DeleteLexicon API operation to delete a pronunciation lexicon from a specific Amazon Region in your account. The following Amazon CLI deletes the specified lexicon.

The following Amazon CLI example is formatted for Unix, Linux, and macOS. For Windows, replace the backslash (\) Unix continuation character at the end of each line with a caret (^) and use full quotation marks (") around the input text with single quotes (') for interior tags.

aws polly delete-lexicon \ --name example

Additional Code Samples for the DeleteLexicon API