Skip to content

Delete Bot Version

lexmodelsv2_delete_bot_version R Documentation

Deletes a specific version of a bot

Description

Deletes a specific version of a bot. To delete all versions of a bot, use the delete_bot operation.

Usage

lexmodelsv2_delete_bot_version(botId, botVersion,
  skipResourceInUseCheck)

Arguments

botId

[required] The identifier of the bot that contains the version.

botVersion

[required] The version 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 version is being used by another resource. Set this parameter to true to skip this check and remove the version even if it is being used by another resource.

Value

A list with the following syntax:

list(
  botId = "string",
  botVersion = "string",
  botStatus = "Creating"|"Available"|"Inactive"|"Deleting"|"Failed"|"Versioning"|"Importing"|"Updating"
)

Request syntax

svc$delete_bot_version(
  botId = "string",
  botVersion = "string",
  skipResourceInUseCheck = TRUE|FALSE
)