Skip to content

mvaictl workspace delete

Delete workspaces

mvaictl workspace delete [NAME]... [flags]

Examples

  # Delete workspaces with names "baz" and "foo"
  mvaictl workspace delete baz foo

  # Delete workspaces with label name=myLabel
  mvaictl workspace delete -l name=myLabel

  # Delete a workspace with minimal delay
  mvaictl workspace delete foo --now

  # Force delete a workspace
  mvaictl workspace delete foo --force

  # Delete all workspaces
  mvaictl workspace delete --all

  # Delete all workspaces only if the user confirms the deletion
  mvaictl workspace delete --all --interactive

Options

  -l, --selector string                 Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
      --field-selector string           Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.
      --all                             Delete all resources, in the namespace of the specified resource types.
  -A, --all-namespaces                  If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
      --force                           If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.
      --cascade string[="background"]   Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background. (default "background")
      --now                             If true, resources are signaled for immediate shutdown (same as --grace-period=1).
      --grace-period int                Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion). (default -1)
      --timeout duration                The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
      --ignore-not-found                Treat "resource not found" as a successful delete. Defaults to "true" when --all is specified.
      --wait                            If true, wait for resources to be gone before returning. This waits for finalizers. (default true)
  -o, --output string                   Output mode. Use "-o name" for shorter output (resource/name).
      --raw string                      Raw URI to DELETE to the server.  Uses the transport specified by the kubeconfig file.
  -i, --interactive                     If true, delete resource only when user confirms.
      --dry-run string[="unchanged"]    Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource. (default "none")
  -h, --help                            help for delete

Options inherited from parent commands

  -c, --config string        Path to mvaictl config directory (default "~/.mvaictl")
      --warnings-as-errors   Treat warnings received from the server as errors and exit with a non-zero exit code

SEE ALSO