Interview Prep/GitOps & Argo CD/Sync Operations, Hooks & Health

Deleting an Application hangs with the app stuck in `Deleting`.

IntermediateTroubleshootingSync Operations, Hooks & Health
Answer

Likely causes → The resources-finalizer.argocd.argoproj.io finalizer waits for all child resources to be deleted, and one cannot be: the destination cluster is gone, a child has its own stuck finalizer (a PVC, a namespace with a stuck CR), or RBAC denies delete.

Diagnose →

argocd app resources web --orphaned=false
kubectl -n web get all,pvc -o name
kubectl get ns web -o yaml | yq '.status.conditions'

Fix → Fix the stuck child. If the cluster no longer exists, remove the finalizer:

kubectl -n argocd patch app web --type json -p '[{"op":"remove","path":"/metadata/finalizers"}]'

Prevent → Delete Applications before decommissioning clusters.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Sync Operations, Hooks & Health