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.
More on Sync Operations, Hooks & Health
Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.Intermediate`one or more objects failed to apply, reason: Deployment.apps "web" is invalid: spec.selector: Invalid value: ...: field is immutable`.BeginnerSync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.BeginnerAn app has been stuck at `Syncing` for an hour with `waiting for completion of hook batch/Job/db-migrate`.IntermediateA PreSync hook fails with `jobs.batch "db-migrate" already exists`.BeginnerA PostSync smoke-test hook never runs, even though the sync says succeeded.Intermediate