def remove_file(filename):
    try:
        os.remove(filename)
        return True
    except (OSError, IOError):
        return False
Flush the file and close it.
dataset/ETHPy150Open huntrar/scrape/scrape/utils.py/remove_file--crossover with--dataset/ETHPy150Open twisted/txmongo/txmongo/_gridfs/grid_file.py/GridIn.close