env

Delete one or more environments from a project.

The drop env command permanently deletes environments from a project.

Error

This action is irreversible! All secrets and version history in the deleted environments will be permanently lost. Create a backup with redenv backup before proceeding.

Usage#

redenv drop env [environments...]

Arguments#

NameRequiredDescription
environmentsNoEnvironment name(s) to delete (interactive if omitted)

Options#

FlagDescription
-p, --project <name>Project name

Examples#

# Delete interactively
redenv drop env

# Delete specific environment
redenv drop env staging

# Delete multiple environments
redenv drop env staging testing

Interactive Flow#

$ redenv drop env

? Select project: my-app
? Enter your Master Password: ********

? Select environments to delete:
 development
 staging
 old-test

? This will PERMANENTLY delete 2 environment(s). Are you sure? Yes

 Successfully deleted 2 environment(s).