Your default environment is protected.
It can’t be deactivated through the Console or the CLI.
To change which environment is the default, see how to rename the default branch.
- The environment becomes inactive. Unless it’s reactivated, it’s no longer deployed and isn’t accessible from the web or via SSH.
- All services running on this environment are deleted.
- All data specific to the environment is deleted. If the environment is reactivated, it syncs data from its parent environment.
Deactivate an environment
To deactivate an environment, follow these steps:- In the Console
- Using the CLI
- Select the project with an environment you want to deactivate.
- From the Environment menu, select the environment.
- Click Settings.
- In the row with Status, click Edit .
- Select the checkbox to show you understand the consequences.
- Click Deactivate & Delete Data.
- Confirm your choice.
Delete the branch
Inactive environments still have branches in Git. To delete the branch entirely, run the following command:Reactivate an environment
Reactivating an environment syncs data from its parent environment. To reactivate an inactive environment, follow these steps:- In the Console
- Using the CLI
- Select the project with an environment you want to reactivate.
- From the Environment menu, select the environment.
- Click Settings.
- In the row with Status, click Edit .
- Click Activate.
push.