Interview Prep/GitOps & Argo CD/The Application CRD & Sync Policies

What do `Prune=false`, `Prune=confirm`, `Delete=false` and `Delete=confirm` do?

IntermediateConceptThe Application CRD & Sync Policies
Answer

They are per-resource sync options set in argocd.argoproj.io/sync-options:

  • Prune=false: never prune this resource even if removed from Git (it shows as requiring pruning).
  • Prune=confirm: pruning waits for a manual confirmation in the UI/CLI.
  • Delete=false: keep the resource when the Application is deleted (classic use: PVCs, namespaces).
  • Delete=confirm: deletion with the app requires confirmation.
All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on The Application CRD & Sync Policies