LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

flux-delete

Delete Flux sources and resources from the cluster

TLDR

Delete a Kustomization
$ flux delete kustomization podinfo
copy
Delete a Kustomization without asking for confirmation
$ flux delete kustomization podinfo --silent
copy
Delete a HelmRelease
$ flux delete helmrelease podinfo
copy
Delete a GitRepository source
$ flux delete source git my-repo
copy
Delete a HelmRepository source
$ flux delete source helm my-repo
copy

SYNOPSIS

flux delete kind name [options]

DESCRIPTION

flux delete removes a Flux custom resource from the cluster. The named object is deleted after a confirmation prompt unless --silent is set.Deleting a Kustomization that has pruning enabled also deletes the Kubernetes resources that Kustomization created. A Git source that still defines the object will recreate it on the next reconciliation.Short kind aliases such as `ks` for kustomization and `hr` for helmrelease are accepted.

PARAMETERS

-s, --silent

Delete the resource without asking for confirmation.
-n, --namespace ns
Namespace scope for the CLI request (default `flux-system`).
--timeout duration
Timeout for the operation (default `5m0s`).
--kubeconfig file
Path to the kubeconfig file.
--context name
Kubeconfig context to use.

KINDS

kustomization

Delete a Kustomization.
helmrelease
Delete a HelmRelease.
source git, source helm, source oci, source bucket, source chart
Delete a GitRepository, HelmRepository, OCIRepository, Bucket, or HelmChart.
image policy, image repository, image update
Delete ImagePolicy, ImageRepository, or ImageUpdateAutomation objects.
alert, alert-provider, receiver
Delete notification Alerts, Providers, and Receivers.

INSTALL

sudo apk add flux
copy
brew install flux
copy
nix profile install nixpkgs#flux
copy

CAVEATS

This removes the live object. If a Git, OCI, or Bucket source still contains the manifest, Flux will recreate it. Deleting a Kustomization with prune enabled can remove the workloads it applied. Cluster access via kubectl is required.

SEE ALSO

RESOURCES

Copied to clipboard
Kai