<p>Is there any policy or a way that enable us to auto delete a persistent volume claim when a kubernetes-job (using that claim) gets completed.</p>

<p>FYI:
i am creating persistent volume claim using delete policy i.e. on claim deletion the associated persistent volume gets deleted too which is my intended behavior.</p>

<p>only suggest other solutions like (cronjobs for cleaning or kubernetes watch feature) if there is not automated way of doing this, that will be my last option.</p>

<p>There is no such functionality in Kubernetes to delete a Persistent Volume Claim after a Job has been completed.</p>

<p>One of the ways is to use Cron Job with simple <code>busybox</code> container running bash script, which checks and deletes unused Persistent Volume Claims.</p>

<p>It is not recommended to use custom scripts in "pre-stop phase" in Pod as @techtrainer suggested  in comments because if some errors appear before this script, Job will fail and Persistent Volume Claim won’t be deleted.</p>
