Job scratch volume overflow

The job scratch volume overflowed its capacity recently, causing new jobs to fail. Identify the reason why these files are not being purged after jobs stop and fix it.