# A chart has a pre-upgrade Job hook with no helm.sh/hook-delete-policy annotation. What happens to the Job left from the previous upgrade when the hook runs again?

Helm, Hard (Expert), Concepts. https://k8wiz.com/uquiz/a-chart-has-a-pre-upgrade-job-hook-with-no-helmshhook-delete-policy-annotation-what-happens-to-the-job-left-from-the-previous-up

- A. The new Job fails because one with that name already exists
- B. Helm deletes it just before creating the new Job
- C. Helm keeps both and adds a revision suffix to the new one
- D. Helm deleted it right after it succeeded last time

**Answer:** Helm deletes it just before creating the new Job

**Explanation:** Hook resources aren't tracked as part of the release, so they stay in the cluster after they run. When no delete policy is set, Helm applies before-hook-creation, which removes the previous resource just before creating the new one. Use hook-succeeded or hook-failed to clean up right after the hook finishes.
