ks env rm

Delete an environment from a ksonnet application

Synopsis

The rm command deletes an environment from a ksonnet application. This is
the same as removing the <env-name> environment directory and all files
contained. All empty parent directories are also subsequently deleted.

NOTE: This does NOT delete the components running in <env-name>. To do that, you
need to use the ks delete command.

  • ks env list — List all environments in a ksonnet application
  • ks env add — Add a new environment to a ksonnet application
  • ks env set — Set environment-specific fields (name, namespace, server)
  • ks delete — Delete all the app components running in an environment (cluster)

Syntax

  1. ks env rm <env-name> [flags]

Examples

  1. # Remove the directory 'environments/us-west/staging' and all of its contents.
  2. # This will also remove the parent directory 'us-west' if it is empty.
  3. ks env rm us-west/staging

Options

  1. -h, --help help for rm
  2. -o, --override Remove the overridden environment

Options inherited from parent commands

  1. --dir string Ksonnet application root to use; Defaults to CWD
  2. --tls-skip-verify Skip verification of TLS server certificates
  3. -v, --verbose count Increase verbosity. May be given multiple times.

SEE ALSO

  • ks env - Manage ksonnet environments