@_pathdec<EOL><INDENT>def rmdir(self, tid):<DEDENT>
pt = self.PathType.get(tid)<EOL>if pt is self.PathType.main:<EOL><INDENT>raise FuseOSError(errno.EINVAL)<EOL><DEDENT>elif pt is not self.PathType.subdir:<EOL><INDENT>raise FuseOSError(errno.ENOTDIR)<EOL><DEDENT>try:<EOL><INDENT>self.searches[tid[<NUM_LIT:0>]].clean()<EOL>del self.searches[tid[<NUM_LIT:0>]]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise FuseOSError(errno.ENOENT)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Directory removal. ``YTActions`` object under `tid` is told to clean all data, and then it is deleted.

Parameters
----------
tid : str
    Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator.