def do_deletes():
    while True:
        f = _get_delete_path()
        if f is None:
            break
        try:
            if os.path.isfile(f):
                os.remove(f)
            elif os.path.isdir(f):
                rm_full_dir(f)
        except __HOLE__:
            log.error("Failed to delete: %s", f)
dataset/ETHPy150Open blackberry/ALF/alf/local.py/do_deletes