# An ApplicationSet sets applicationsSync: create-update, but the controller runs with --policy sync and no policy override flag. A directory is removed from Git. What happens?

Argo CD, Hard (Expert), Syncing & Deployment. https://k8wiz.com/uquiz/an-applicationset-sets-applicationssync-create-update-but-the-controller-runs-with-policy-sync-and-no-policy-override-flag-a-dir

- A. The Application is kept, since the AppSet field wins
- B. The controller reports a policy conflict and stops
- C. The Application is deleted, since the flag wins
- D. The Application is kept but shown as OutOfSync

**Answer:** The Application is deleted, since the flag wins

**Explanation:** When the controller's --policy flag is set explicitly, it takes precedence over the per-ApplicationSet applicationsSync field unless --enable-policy-override is also enabled. With sync in effect, the controller deletes Applications that are no longer generated. Override is allowed by default only when --policy is left empty.
