v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1471501483.8 KB

Deletes a slot type from a bot locale.

If a slot is using the slot type, Amazon Lex throws a ResourceInUseException exception. To avoid the exception, set the skipResourceInUseCheck parameter to true.

delete/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/

Path parameters

slotTypeIdstring required

The identifier of the slot type to delete.

botIdstring required

The identifier of the bot associated with the slot type.

botVersionstring required

The version of the bot associated with the slot type.

localeIdstring required

The identifier of the language and locale that the slot type will be deleted from. The string must match one of the supported locales. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.

Query parameters

skipResourceInUseCheckboolean

By default, the <code>DeleteSlotType</code> operations throws a <code>ResourceInUseException</code> exception if you try to delete a slot type used by a slot. Set the <code>skipResourceInUseCheck</code> parameter to <code>true</code> to skip this check and remove the slot type even if a slot uses it.

Response

Success