Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Latest commit

 

History

History
56 lines (36 loc) · 1.41 KB

ks_env_rm.md

File metadata and controls

56 lines (36 loc) · 1.41 KB

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.

Related Commands

  • 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

ks env rm <env-name> [flags]

Examples


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

Options

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

Options inherited from parent commands

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

SEE ALSO

  • ks env - Manage ksonnet environments