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:

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

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

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

    aws lex-models delete-slot-type --region region \ --endpoint endpoint \ --name FlowerTypes

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