LexModelsV2 / Client / delete_bot_version
delete_bot_version#
- LexModelsV2.Client.delete_bot_version(**kwargs)#
- Deletes a specific version of a bot. To delete all versions of a bot, use the DeleteBot operation. - See also: AWS API Documentation - Request Syntax - response = client.delete_bot_version( botId='string', botVersion='string', skipResourceInUseCheck=True|False ) - Parameters:
- botId (string) – - [REQUIRED] - The identifier of the bot that contains the version. 
- botVersion (string) – - [REQUIRED] - The version of the bot to delete. 
- skipResourceInUseCheck (boolean) – By default, Amazon Lex checks if any other resource, such as an alias or bot network, is using the bot version before it is deleted and throws a - ResourceInUseExceptionexception if the version is being used by another resource. Set this parameter to- trueto skip this check and remove the version even if it is being used by another resource.
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'botId': 'string', 'botVersion': 'string', 'botStatus': 'Creating'|'Available'|'Inactive'|'Deleting'|'Failed'|'Versioning'|'Importing'|'Updating' } - Response Structure - (dict) – - botId (string) – - The identifier of the bot that is being deleted. 
- botVersion (string) – - The version of the bot that is being deleted. 
- botStatus (string) – - The current status of the bot. 
 
 
 - Exceptions - LexModelsV2.Client.exceptions.ThrottlingException
- LexModelsV2.Client.exceptions.ServiceQuotaExceededException
- LexModelsV2.Client.exceptions.ValidationException
- LexModelsV2.Client.exceptions.ConflictException
- LexModelsV2.Client.exceptions.PreconditionFailedException
- LexModelsV2.Client.exceptions.InternalServerException