:doc:`Polly <../../polly>` / Client / delete_lexicon

**************
delete_lexicon
**************



.. py:method:: 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 ``GetLexicon`` or ``ListLexicon`` APIs.

   

  For more information, see `Managing Lexicons <https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexicon>`_  


  **Request Syntax**
  ::

    response = client.delete_lexicon(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the lexicon to delete. Must be an existing lexicon in the region.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Polly.Client.exceptions.LexiconNotFoundException`

  
  *   :py:class:`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': {
            '...': '...',
        },
    }

  