:doc:`LexModelsV2 <../../lexv2-models>` / Client / delete_bot_locale

*****************
delete_bot_locale
*****************



.. py:method:: LexModelsV2.Client.delete_bot_locale(**kwargs)

  

  Removes a locale from a bot.

   

  When you delete a locale, all intents, slots, and slot types defined for the locale are also deleted.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale>`_  


  **Request Syntax**
  ::

    response = client.delete_bot_locale(
        botId='string',
        botVersion='string',
        localeId='string'
    )
    
  :type botId: string
  :param botId: **[REQUIRED]** 

    The unique identifier of the bot that contains the locale.

    

  
  :type botVersion: string
  :param botVersion: **[REQUIRED]** 

    The version of the bot that contains the locale.

    

  
  :type localeId: string
  :param localeId: **[REQUIRED]** 

    The identifier of the language and locale that will be deleted. The string must match one of the supported locales. For more information, see `Supported languages <https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html>`__.

    

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

    
    ::

      {
          'botId': 'string',
          'botVersion': 'string',
          'localeId': 'string',
          'botLocaleStatus': 'Creating'|'Building'|'Built'|'ReadyExpressTesting'|'Failed'|'Deleting'|'NotBuilt'|'Importing'|'Processing'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **botId** *(string) --* 

        The identifier of the bot that contained the deleted locale.

        
      

      - **botVersion** *(string) --* 

        The version of the bot that contained the deleted locale.

        
      

      - **localeId** *(string) --* 

        The language and locale of the deleted locale.

        
      

      - **botLocaleStatus** *(string) --* 

        The status of deleting the bot locale. The locale first enters the ``Deleting`` status. Once the locale is deleted it no longer appears in the list of locales for the bot.

        
  
  **Exceptions**
  
  *   :py:class:`LexModelsV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ValidationException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.PreconditionFailedException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ConflictException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.InternalServerException`

  