---
title: Environments tab
description: Create, edit, and delete the environments in your Prefactor account.
editUrl: true
head: []
template: doc
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

Environments separate the stages your agents run in, such as Development, Staging, and Production. You'll come here to add an environment, rename one, or look up an environment ID. Agents belong to the account, not to an environment; [deployments](/platform/concepts/agent-deployment) and runs are what belong to an environment.

![The Environments tab listing three environments, with a marker on Create environment (1).](../../../../assets/screenshots/web-app/account-environments-tab.png)

1. Create environment - adds an environment to the account.

The **Environment** column shows each environment's name, a purpose badge (Development, Staging, Testing, or Production), and its description. The **Environment ID** column shows the ID that Prefactor generates when you create the environment.

Select **Create environment** to add one. Enter an environment name, choose a purpose, optionally add a description, and select **Create environment**. **Edit** in a row's action menu opens the same three fields; select **Save changes** to apply.

**Delete**, in the same menu, removes the environment after you confirm.

:::danger
Deleting an environment can't be undone. Its deployments, the agent instances recorded in it, and any tokens scoped to it are deleted with it. An agent still using one of those tokens can no longer authenticate.
:::

## Related

- [Environment](/platform/concepts/environment) — what environments are and how they scope deployments and runs.
- [Agent deployment](/platform/concepts/agent-deployment) — how a deployment ties an agent version to an environment.
- [Account page](/web-app/account) — how the Account settings tabs fit together.