In your Chatbot Studio, with the correct bot selected:
- To delete a variable, go to the Variables page.
- Find the variable you want to delete, and click the trash icon
to the right of the table.
Checking if variable is in use
When you choose to delete a variable, Studio will check if that variable is used in any of the replies for your existing intents.
The Delete variable dialog will tell you how many intents have replies which include that variable, if any.
Variable is in use
If the variable is in the reply for any of your intents. the dialog will tell you how many:
- To view the intents which use that variable, click the here link in the dialog. You will be taken to the Intents page, with a search automatically defined to find intents that reference that variable.
- Alternatively, to delete the variable anyway, click the Delete variable button. Note that this can result in the replies that used that variable looking a little strange.
Variable is not in use
If the variable is not in use by the replies for any of your intents:
- Click the Delete variable button.
Further reading
For more information about using variables, see the article How to create and use variables in your chatbot