Delete Bot
lexmodelsv2_delete_bot | R Documentation |
Deletes all versions of a bot, including the Draft version¶
Description¶
Deletes all versions of a bot, including the Draft
version. To delete
a specific version, use the delete_bot_version
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 delete_bot
operation returns a
ResourceInUseException
exception. If you want to delete the bot and
the alias, set the skipResourceInUseCheck
parameter to true
.
Usage¶
Arguments¶
botId
[required] The identifier of the bot to delete.
skipResourceInUseCheck
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
ResourceInUseException
exception if the bot is being used by another resource. Set this parameter totrue
to skip this check and remove the bot even if it is being used by another resource.
Value¶
A list with the following syntax:
list(
botId = "string",
botStatus = "Creating"|"Available"|"Inactive"|"Deleting"|"Failed"|"Versioning"|"Importing"|"Updating"
)