v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14107861793.8 KB

Deletes all versions of a bot, including the Draft version. To delete a specific version, use the DeleteBotVersion operation.

When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot.

If a bot has an alias, the DeleteBot operation returns a ResourceInUseException exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck parameter to true.

delete/bots/{botId}/

Path parameters

botIdstring required

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

Response

Success

botIdstring

The unique identifier of the bot that Amazon Lex is deleting.

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

The current status of the bot. The status is <code>Deleting</code> while the bot and its associated resources are being deleted.