def METHOD_NAME(self, dirpath, user_name, pass_word=""):
    user_info_t = curvefs.UserInfo_t()
    user_info_t.owner = user_name
    user_info_t.password = pass_word
    rc = cbdClient.Rmdir(dirpath, user_info_t)
    if rc != 0:
        #print "delete dir fail! rc=%s" % rc
        logger.info("delete dir fail! rc=%s" % rc)
        return rc
        #raise AssertionError
    else:
        return rc