'Delete local user information by netconf'

def delete_local_user_info(self, **kwargs):

    module = kwargs['module']
    local_user_name = module.params['local_user_name']
    conf_str = (CE_DELETE_LOCAL_USER_INFO_HEADER % local_user_name)
    conf_str += CE_DELETE_LOCAL_USER_INFO_TAIL
    cmds = []
    recv_xml = self.netconf_set_config(module=module, conf_str=conf_str)
    if ('<ok/>' not in recv_xml):
        module.fail_json(msg='Error:    Delete    local    user    info    failed.')
    cmd = ('undo    local-user    %s' % local_user_name)
    cmds.append(cmd)
    return cmds
