Change or delete an environment variable
Change a variable when the value your project's code needs has moved, such as a new service address or a different credential. Delete it when the code no longer reads it. Either way, only slots claimed afterwards see the change; a slot already in use keeps what it was given.
Who can do this: a variable that applies to Everyone needs the permission to edit the project. An Only me variable can be changed or deleted only by the member it belongs to.
Change a variable
- In the sidebar, select Directory, then the Projects tab.
- Select the project's name to open its settings.
- Settings opens. Select Variables in its list of sections.
- Select the variable's name. Its page opens beside the list. If it shows Back and no Save, you can't change this variable.
- Change what you need: Variable name, the value under Value from, or Description. Picking another Credential clears Credential field, so pick the field again.
- Select Save. It stays unavailable until something has changed, and Saved. shows beside it once the change is stored.
- Check the title: a Not resolved chip and a line starting ⚠ Not resolved — mean the variable now gets no value and is left out of new slots. Read the line and fix what it names.
Applies to can't be changed on a saved variable. To move a value between Everyone and Only me, add it again with the other choice, see Add an environment variable, then delete the old one.
Delete a variable
- In the project's Settings › Variables, find the variable's row and select ⋯ at its end. With the variable's page open, you can use the ⋯ at the top of the page instead.
- Select Delete. The Delete environment variable dialog names the variable.
- Select Delete to confirm, or Cancel to keep it. Deleting can't be undone.
- Check the list: the variable's row is gone. If it was your Only me value and the project also has an Everyone value of the same name, your slots get the Everyone value from now on.
- Select Show preview to see every line your next slot gets.
Related
- What each field on a variable's page means: Project variable.
- The columns of the variables table: Projects.
- How variables and credentials reach a project's tasks: How projects work.
- When the credential a variable reads has changed: Replace or delete a credential.