

# Deleting a lexicon
<a name="managing-lexicons-console-delete"></a>

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 ]<a name="delete-lexicon"></a>

**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/](https://console.amazonaws.cn/polly/).

1. Choose the **Lexicons** tab.

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

1. Choose **Delete**.

1. 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_DeleteLexicon.md) 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 (\$1) 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:
+ Java Sample: [DeleteLexicon](DeleteLexiconSample.md)
+ Python (Boto3) Sample: [DeleteLexicon](DeleteLexiconPython.md)

------