Skip to content


flux uninstall

Uninstall the toolkit components


The uninstall command removes the namespace, cluster roles, cluster role bindings and CRDs from the cluster.

flux uninstall [flags]


  # Dry-run uninstall of all components
  flux uninstall --dry-run --namespace=flux-system

  # Uninstall all components and delete custom resource definitions
  flux uninstall --resources --crds --namespace=flux-system


      --crds        removes all CRDs previously installed
      --dry-run     only print the object that would be deleted
  -h, --help        help for uninstall
      --resources   removes custom resources such as Kustomizations, GitRepositories and HelmRepositories (default true)
  -s, --silent      delete components without asking for confirmation

Options inherited from parent commands

      --context string      kubernetes context to use
      --kubeconfig string   path to the kubeconfig file (default "~/.kube/config")
  -n, --namespace string    the namespace scope for this operation (default "flux-system")
      --timeout duration    timeout for this operation (default 5m0s)
      --verbose             print generated objects


  • flux - Command line utility for assembling Kubernetes CD pipelines