SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I edit or delete an environment variable on a Functions service?

Objective

This article shows you how to change the key or value of an existing environment variable on a Functions service, or remove a variable you no longer need, for example when rotating a credential.

 

Product

Twilio Functions and Assets

 

Environment

Twilio Console

 

Procedure

  1. In the Twilio Console, select Builder tools in the left sidebar.
  2. Select Functions & Assets, then Services.
  3. Select the name of the service you want to configure.
  4. Select the Environment variables tab.
  5. Find the variable you want to change. If the list is long, search by key or value.
  6. To change it, select Edit on that row, update the Key or Value in place, and confirm the update. Select cancel instead to leave the variable unchanged.
  7. To remove it, select Delete on that row.

 

Additional Information

  • The same rules apply when editing as when adding: a key may contain only letters, numbers, hyphens, and underscores and can be up to 128 characters, and a value can be up to 255 characters.
  • Values are hidden in the table by default so a variable is not exposed on screen. Reveal a value only when you need to check it.
  • Removing a variable that your function code still reads will cause that code to run without the value, so update the function before deleting the variable.

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk