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
-
Java Sample: DeleteLexicon
-
Python (Boto3) Sample: DeleteLexicon