Polly / Client / delete_lexicon
delete_lexicon#
- Polly.Client.delete_lexicon(**kwargs)#
- Deletes the specified pronunciation lexicon stored in an Amazon Web Services Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the - GetLexiconor- ListLexiconAPIs.- For more information, see Managing Lexicons. - See also: AWS API Documentation - Request Syntax - response = client.delete_lexicon( Name='string' ) - Parameters:
- Name (string) – - [REQUIRED] - The name of the lexicon to delete. Must be an existing lexicon in the region. 
- Return type:
- dict 
- Returns:
- Response Syntax - {}- Response Structure - (dict) – 
 
 - Exceptions - Polly.Client.exceptions.LexiconNotFoundException
- Polly.Client.exceptions.ServiceFailureException
 - Examples - Deletes a specified pronunciation lexicon stored in an AWS Region. - response = client.delete_lexicon( Name='example', ) print(response) - Expected Output: - { 'ResponseMetadata': { '...': '...', }, }