@classdef.singleton_method("delete", path="path")
    @classdef.singleton_method("rmdir", path="path")
    @classdef.singleton_method("unlink", path="path")
    def method_delete(self, space, path):
        try:
            os.rmdir(path if path else "")
        except __HOLE__ as e:
            raise error_for_oserror(space, e)
        return space.newint(0)
dataset/ETHPy150Open topazproject/topaz/topaz/objects/dirobject.py/W_DirObject.method_delete