LexModelsV2 / Client / delete_bot_locale

delete_bot_locale#

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

Request Syntax

response = client.delete_bot_locale(
    botId='string',
    botVersion='string',
    localeId='string'
)
Parameters:
  • botId (string) –

    [REQUIRED]

    The unique identifier of the bot that contains the locale.

  • botVersion (string) –

    [REQUIRED]

    The version of the bot that contains the locale.

  • localeId (string) –

    [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.

Return type:

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