

def deltree(fname):
    if (not os.path.exists(fname)):
        return
    for f in os.listdir(fname):
        fullname = os.path.join(fname, f)
        if os.path.isdir(fname):
            deltree(fullname)
        else:
            try:
                os.unlink(fullname)
            except:
                pass
    try:
        os.rmdir(fname)
    except:
        pass

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_mhlib.py deltree/VarMisuse@60/64 `fullname`->`fname`