Menu
Amazon Lex
Developer Guide

Exercise 6: Clean Up (AWS CLI)

Delete the resources that you created and clean up your account.

You can delete only resources that are not in use. In general, you should delete resources in the following order.

  1. Delete aliases to free up bot resources.

  2. Delete bots to free up intent resources.

  3. Delete intents to free up slot type resources.

  4. Delete slot types.

To clean up your account (AWS CLI)

  1. In the AWS CLI command line, delete the alias:

    Copy
    aws lex-models delete-bot-alias --name PROD --bot-name OrderFlowersBot
  2. In the AWS CLI command line, delete the bot:

    Copy
    aws lex-models delete-bot --name OrderFlowersBot
  3. In the AWS CLI command line, delete the intent:

    Copy
    aws lex-models delete-intent --name OrderFlowers
  4. From the AWS CLI command line, delete the slot type:

    Copy
    aws lex-models delete-slot-type --name FlowerTypes

You have removed all of the resources that you created and cleaned up your account.