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

# Managing bulk operations

> Run deploy, destroy, or other operations on multiple env zero environments simultaneously from the project environments page or organization dashboard.

As your organization gets larger, and your projects contain more and more environments, running some operations on many environments at once can be a cumbersome task. That's where env zero's bulk operations feature can come in handy.

# Running a Bulk Operation

Running a bulk operation is very simple:

1. Navigate to your `Project Environments` page.
2. Click the kebab menu button on the top right of the list and pick `Toggle selection mode`

<Frame>
  <img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-toggle-selection-mode.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=823dced65aa2de7521f315b14d292a30" alt="The environments list with the kebab menu open on Toggle selection mode" width="1495" height="812" data-path="images/guides/admin-guide/environments/bulk-operations-toggle-selection-mode.png" />
</Frame>

3. Check the environments you would like to run the operation on and click `Perform Action`

<Frame>
  <img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-select-environments.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=fbd056eb3200bf76aea2d2b087368a91" alt="Three environments checked in selection mode, with the Perform Action button showing the count" width="1495" height="812" data-path="images/guides/admin-guide/environments/bulk-operations-select-environments.png" />
</Frame>

<Info>
  **Cross-Project Bulk Operations**

  The selection phase can be done also from `Organization Dashboard` page, in case you would like to run the operation on environments across multiple projects
</Info>

4. The bulk operations wizard will appear, on which you will have to choose the operation you would like to run

<img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-command-step.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=e5f31c1d66bb7a802d5112c5fcc4c0c5" alt="Bulk operations wizard showing available operation types to run across selected environments" width="1495" height="812" data-path="images/guides/admin-guide/environments/bulk-operations-command-step.png" />

The supported operations are:

1. Deploy
2. Destroy
3. Approve a plan
4. Cancel a plan
5. [Lock](/guides/admin-guide/environments/environment-locking)
6. [Release lock](/guides/admin-guide/environments/environment-locking)
7. Cancel queued deployments
8. [Running a task](/guides/admin-guide/environments/ad-hoc-tasks)
9. [Mark as inactive](/guides/admin-guide/environments#mark-an-environment-as-inactive)
10. [Add tags](/guides/admin-guide/environments/tags#add-and-remove-tags-in-bulk)
11. [Remove tags](/guides/admin-guide/environments/tags#add-and-remove-tags-in-bulk)

For some operations, such as `Deploy`, you can edit some of the request settings on the `Details` step. In case there is nothing to edit, you will be taken straight to the `Summary` step.

<img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-deploy-details-step.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=adc013035600a918b46490022970884f" alt="Bulk operation Details step showing the deploy settings for the selected environments" width="1495" height="812" data-path="images/guides/admin-guide/environments/bulk-operations-deploy-details-step.png" />

In the `Summary` step, you can review and approve your operation. Click `Execute` when you are ready to start the bulk operation.

<img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-summary-step.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=f1bbeec7f70f0bbf581d9ef0362397a6" alt="Bulk operation Summary step listing the selected environments with an Execute button" width="1495" height="812" data-path="images/guides/admin-guide/environments/bulk-operations-summary-step.png" />

The operation you choose will now be executed across all your selected environments simultaneously.

# Following a Bulk Operation

After you click `Execute`, the wizard stays open and turns into a live results panel. It refreshes every few seconds until every environment has finished, so you can see what actually happened to each one instead of only being told that the request was accepted.

<img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-results-panel.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=1719763dbf10c4a43c75fd7a3fc97e1c" alt="Bulk operation results panel with one environment still in progress and two succeeded" width="1504" height="817" data-path="images/guides/admin-guide/environments/bulk-operations-results-panel.png" />

Each environment shows:

* A status: `Pending` while it is waiting its turn, `Starting...` while env zero is starting it, and then the deployment's own status (`Queued`, `In Progress`, `Waiting for approval`, `Success`, `Failure`, `Cancelled`, and so on). Operations without a deployment, such as lock or mark as inactive, end at `Completed`.
* A link to the deployment, as soon as one exists.
* `Failed to start` when env zero could not start the operation at all, for example because the environment is locked or you do not have permission on it. Hover over the row's icon to read the error.

At the top, a progress bar and an `X of Y finished` counter track the whole batch, with the number of failures next to it. Once everything settles, the panel says so and stops refreshing.

<img src="https://mintcdn.com/envzero-b61043c8/37DrZ5Yu0iArtwRW/images/guides/admin-guide/environments/bulk-operations-results-finished.png?fit=max&auto=format&n=37DrZ5Yu0iArtwRW&q=85&s=b8430b3b0999ac730fef25ef0556222a" alt="Bulk operation results panel after every environment finished successfully" width="1504" height="817" data-path="images/guides/admin-guide/environments/bulk-operations-results-finished.png" />

<Info>
  The operation runs on env zero's servers, so closing the window does not stop it. The results panel is not restored after you close it.
</Info>

## Next steps

* [Environment overview](/guides/admin-guide/environments) - Review all actions available on individual environments.
* [Locking environments](/guides/admin-guide/environments/environment-locking) - Lock multiple environments to prevent unintended changes.
* [Running ad hoc tasks](/guides/admin-guide/environments/ad-hoc-tasks) - Run arbitrary commands across environments using the task bulk operation.
