Figured out issue so jobs can be deleted
Added check to only delete jobs that are completed