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
- In the Twilio Console, select Builder tools in the left sidebar.
- Select Functions & Assets, then Services.
- Select the name of the service you want to configure.
- Select the Environment variables tab.
- Find the variable you want to change. If the list is long, search by key or value.
- 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.
- 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.