# Adding, Editing & Deleting Variables

> How to manage environment variables for your Phoenix app through the Potions dashboard.

Environment variables let you pass configuration and secrets to your Phoenix app at runtime. Configure environment variables for things like API keys, feature flags, and service URLs.

All variable management happens from the **Environment** tab in your app's sidebar.

![The Environment tab showing a list of variables with reveal, edit, and delete controls](https://media.potions.io/docs/env-tab-variable-list.png)

> Changes to environment variables take effect on the next deploy. Trigger a deploy from the Deployments tab to apply them.

## Adding a Variable

1. Open **Manage Variables** and choose **Add variable**
2. Enter a **Key** (e.g., `MY_SECRET_KEY`)
3. Enter a **Value**
4. Click **Add Variable** to save

## Editing a Variable

1. Click the **pencil icon** next to the variable
2. Update the **Value**: the key is locked and cannot be changed
3. Click **Save**

To rename a variable, delete the old one and create a new one with the desired key. Both auto-generated and user-defined variables can be edited.

## Deleting a Variable

1. Click the **trash icon** next to the variable
2. Confirm the deletion

Both auto-generated and user-defined variables can be deleted. Be cautious deleting auto-generated variables - your app may fail to boot without `SECRET_KEY_BASE` or `DATABASE_URL`.
