Help us shape the future of Go! Take the 2026 Go Developer Survey

delete

package
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

NewCommand creates an instance of the command and runner for the `rad env delete` command.

Types

type Runner

type Runner struct {
	ConfigHolder            *framework.ConfigHolder
	Output                  output.Interface
	InputPrompter           prompt.Interface
	ConnectionFactory       connections.Factory
	Workspace               *workspaces.Workspace
	RadiusCoreClientFactory *corerpv20250801.ClientFactory

	Confirm         bool
	Force           bool
	EnvironmentName string
}

Runner is the runner implementation for the `rad env delete` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the `rad env delete` runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run runs the `rad env delete` command.

Deleting an environment cascades to everything deployed into it: the resources that reference the environment, the applications in the environment, and finally the environment itself. This matches the behavior of the legacy Applications.Core/environments delete path, so that deleting an environment does not leave orphaned resources behind. Resource deletion also waits for server-side managed-secret cleanup before removing scopes.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate runs validation for the `rad env delete` command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL