def remove_all(filelist, folder='<STR_LIT>'):
if not folder:<EOL><INDENT>for f in filelist:<EOL><INDENT>os.remove(f)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for f in filelist:<EOL><INDENT>os.remove(op.join(folder, f))<EOL><DEDENT><DEDENT>
Deletes all files in filelist

    Parameters
    ----------
    filelist: list of str
        List of the file paths to be removed

    folder: str
        Path to be used as common directory for all file paths in filelist