rad environment delete CLI reference
Details on the rad environment delete Radius CLI command
❗️ Preview Release: This documentation covers a preview of Radius which uses different Resource Types from the current release. Enable it by passing the --preview to the Radius CLI or settingRADIUS_PREVIEW=true.
rad environment delete
Delete environment
Synopsis
Delete environment. Deletes the user’s default environment by default.
In preview mode, deleting an environment also deletes the applications in that environment and the resources deployed into it.
rad environment delete [flags]
Examples
# Delete current environment
rad env delete
# Delete current environment and bypass confirmation prompt
rad env delete --yes
# Delete specified environment
rad env delete my-env
# Delete specified environment in a specified resource group
rad env delete my-env --group my-env
# Delete a Radius.Core environment and everything deployed into it
rad env delete my-env --preview
# Delete a Radius.Core environment, forcing deletion of resources in a non-terminal state
rad env delete my-env --force --preview
Options
-e, --environment string The environment name
--force Force the operation even if the resource is in a non-terminal provisioning state
-g, --group string The resource group name
-h, --help help for delete
-o, --output string output format (supported formats are json, table) (default "table")
--preview Use the Radius.Core preview implementation for environment delete (can also be set via RADIUS_PREVIEW=true)
-w, --workspace string The workspace name
-y, --yes The confirmation flag
Options inherited from parent commands
--config string config file (default "$HOME/.rad/config.yaml")
SEE ALSO
- rad environment - Manage Radius Environments
Feedback
Was this page helpful?
Glad to hear it! Please feel free to star our repo and join our Discord server to stay up to date with the project.
Sorry to hear that. If you would like to also contribute a suggestion visit and tell us how we can improve.