import shutil


def rm(dir: str, recurse: bool = False) -> bool:
    """
    Removes a file or directory
    """
    if dir.startswith("file:"):
        shutil.rmtree(dir[7:], recurse)
        return True
    print("skip: dbutils.fs.rm({},{})".format(dir, recurse))
    return False