Deleting a lexicon - 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).

Deleting a lexicon

The following process describes how to delete a lexicon. After deleting the lexicon, you must add it back before you can use it again. You can delete one or more lexicons at the same time by selecting the check boxes next to individual lexicons.

Console
To delete a lexicon
  1. Sign in to the Amazon Web Services Management Console and open the Amazon Polly console at https://console.amazonaws.cn/polly/.

  2. Choose the Lexicons tab.

  3. Choose one or more lexicons that you want to delete from the list.

  4. Choose Delete.

  5. Enter confirmation text and then choose Delete to remove the lexicon from the Region or Cancel to keep it.

Amazon CLI

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

The following resources contain additional information for the DeleteLexicon operation: