def del_job_files(job_paths):
 for path in job_paths:
  if (path and clip_path(path).lower().startswith(cfg.download_dir.get_path().lower())):
   remove_all(path, recursive=True)

def del_job_files ( job_paths ) : for path in job_paths : if ( path and clip_path ( path ) . lower ( ) . startswith ( cfg . download_dir . get_path ( ) . lower ( ) ) ) : remove_all ( path , recursive = True )
remove files of each path in the list .