def irm(ip,arg):
    """ irm path[s]...
    
    Remove file[s] or dir[s] path. Dirs are deleted recursively.
    """
    try:
        paths = mglob.expand(arg.split(None,1)[1])
    except __HOLE__:
        raise UsageError("%irm paths...")
    import distutils.dir_util
    for p in paths:
        print("rm",p)
        if os.path.isdir(p):
            distutils.dir_util.remove_tree(p, verbose = 1)
        else:
            os.remove(p)
dataset/ETHPy150Open ipython/ipython-py3k/IPython/quarantine/ipy_fsops.py/irm