v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

Deletes a specific version of a bot. To delete all versions of a bot, use the <a href="https://docs.aws.amazon.com/lexv2/latest/APIReference/API_DeleteBot.html">DeleteBot</a> operation.

delete/bots/{botId}/botversions/{botVersion}/

Path parameters

botIdstring required

The identifier of the bot that contains the version.

botVersionstring required

The version of the bot to delete.

Query parameters

skipResourceInUseCheckboolean

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 <code>ResourceInUseException</code> exception if the version is being used by another resource. Set this parameter to <code>true</code> to skip this check and remove the version even if it is being used by another resource.

Response

Success

botIdstring

The identifier of the bot that is being deleted.

botVersionstring

The version of the bot that is being deleted.

botStatus'Creating' | 'Available' | 'Inactive' | 'Deleting' | 'Failed' | 'Versioning' | 'Importing' | 'Updating'

The current status of the bot.