<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean_job(logfile, outfiles, dry_run=False):
 """Removes log file and files created by failed jobs. If dry_run is True, print name of files to be removed, but do not remove them. """

    remove_file(logfile, dry_run)
    for outfile in outfiles.values():
        remove_file(outfile, dry_run)