# What does setting spec.syncPolicy.preserveResourcesOnDeletion to true change in an ApplicationSet?

Argo CD, Medium (Advanced), Application Management. https://k8wiz.com/uquiz/what-does-setting-specsyncpolicypreserveresourcesondeletion-to-true-change-in-an-applicationset

- A. Generated Applications are kept when their directory leaves Git
- B. Automated syncs stop pruning resources that were removed from Git
- C. The ApplicationSet can't be deleted while it still owns Applications
- D. Applications get no resources finalizer, so their workloads stay

**Answer:** Applications get no resources finalizer, so their workloads stay

**Explanation:** Without this setting, the ApplicationSet controller adds resources-finalizer.argocd.argoproj.io to each generated Application, so deleting the Application also deletes what it deployed. With it set to true the finalizer isn't added: Applications can still be deleted, but their resources stay in the cluster. Keeping the Applications themselves is the job of applicationsSync: create-update.
