> ## Documentation Index
> Fetch the complete documentation index at: https://support.locker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Add and Manage Environments

> How to create, edit, and delete environments in your project.

## Add and Manage Environments

An environment is where the code in a software project is executed. Environments allow you to track your application deployments. Any secrets stored in an environment are only available to jobs that reference that environment.

### Add an environment

1. Log in to your Locker Secrets Manager account, open the workspace and the project where you want to add a new environment.

2. Open the **Environments** screen from the left navigation bar.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-nav.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=56421ae0386f09b58bd589607935e50e" alt="Environments navigation bar" width="512" height="545" data-path="images/en/locker-secrets-manager/secrets-management/environment-nav.png" />

3. Click the **New Environment** button in the upper right corner of the screen.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-list.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=f475384f4ed0a4a1c5a23472dd1c7786" alt="Environments list screen with the New Environment button" width="1920" height="743" data-path="images/en/locker-secrets-manager/secrets-management/environment-list.png" />

4. Enter the environment information and click the **Create** button.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-create-form.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=7f7cb23a3aaca461a0fdc4675f263418" alt="New environment creation form" width="512" height="758" data-path="images/en/locker-secrets-manager/secrets-management/environment-create-form.png" />

<Note>
  You can also create an environment while creating a secret on the Secrets screen.
</Note>

The newly created environment will be displayed in the environments list as shown below.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-created-list.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=499b97c1fcfc8b97c76a2656799878d5" alt="Environments list after creation" width="1920" height="809" data-path="images/en/locker-secrets-manager/secrets-management/environment-created-list.png" />

### Edit an environment

To edit an environment, go to the **Environments** page.

1. Click the **Pencil** icon corresponding to the environment you want to edit.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-edit-icon.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=5cdd64bf3db0cf83e244524858a715be" alt="Environments list with the edit icon" width="1920" height="726" data-path="images/en/locker-secrets-manager/secrets-management/environment-edit-icon.png" />

2. Edit the information and click the **Save** button to save your changes.

### Delete an environment

To delete an environment, go to the **Environments** page.

1. Click the **Trash** icon corresponding to the environment you want to delete.

<img src="https://mintcdn.com/locker/RN2-OO7uarVxuthM/images/en/locker-secrets-manager/secrets-management/environment-delete-icon.png?fit=max&auto=format&n=RN2-OO7uarVxuthM&q=85&s=e15338865ae370b5de7a3f0f66e7d2ae" alt="Environments list with the delete icon" width="1920" height="726" data-path="images/en/locker-secrets-manager/secrets-management/environment-delete-icon.png" />

2. In the pop-up window that appears, click the **Confirm** button to delete the environment.
3. The environment will be permanently deleted.
