flux-delete
Delete Flux sources and resources from the cluster
TLDR
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
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
flux(1), flux-create(1), flux-export(1), flux-suspend(1)
