def delete_temp_files(job_id):
    """deletes temp files for given job ID"""
    if os.path.exists(TEMP_STORAGE_PATH):
        for file in glob.glob(os.path.join(TEMP_STORAGE_PATH, "%s*" % job_id)):
            if os.path.isfile(file):
                os.unlink(file)
    if os.path.exists(os.path.join(TEMP_STORAGE_PATH, job_id)):
        shutil.rmtree(os.path.join(TEMP_STORAGE_PATH, job_id))
deletes temp files for given job ID
app/dalton.py