LexModelBuildingService / Client / delete_bot
delete_bot¶
- LexModelBuildingService.Client.delete_bot(**kwargs)¶
Deletes all versions of the bot, including the
$LATESTversion. To delete a specific version of the bot, use the DeleteBotVersion operation. TheDeleteBotoperation doesn’t immediately remove the bot schema. Instead, it is marked for deletion and removed later.Amazon Lex stores utterances indefinitely for improving the ability of your bot to respond to user inputs. These utterances are not removed when the bot is deleted. To remove the utterances, use the DeleteUtterances operation.
If a bot has an alias, you can’t delete it. Instead, the
DeleteBotoperation returns aResourceInUseExceptionexception that includes a reference to the alias that refers to the bot. To remove the reference to the bot, delete the alias. If you get the same exception again, delete the referring alias until theDeleteBotoperation is successful.This operation requires permissions for the
lex:DeleteBotaction.Danger
This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.
See also: AWS API Documentation
Request Syntax
response = client.delete_bot( name='string' )
- Parameters:
name (string) –
[REQUIRED]
The name of the bot. The name is case sensitive.
- Returns:
None
Exceptions
LexModelBuildingService.Client.exceptions.NotFoundExceptionLexModelBuildingService.Client.exceptions.ConflictExceptionLexModelBuildingService.Client.exceptions.LimitExceededExceptionLexModelBuildingService.Client.exceptions.InternalFailureExceptionLexModelBuildingService.Client.exceptions.BadRequestExceptionLexModelBuildingService.Client.exceptions.ResourceInUseException