def config_absent(name):
    ret = {'name': name,
           'result': False,
           'changes': {},
           'comment': ''}

    matches = __salt__['nxos.cmd']('find', name)

    if not matches:
        ret['result'] = True
        ret['comment'] = 'Config is already absent'

    elif __opts__['test'] is True:
        ret['result'] = None
        ret['comment'] = 'Config will be removed'
        ret['changes']['new'] = name

    else:
        __salt__['nxos.cmd']('delete_config', name)
        matches = __salt__['nxos.cmd']('find', name)
        if not matches:
            ret['result'] = True
            ret['comment'] = 'Successfully deleted config'
            ret['changes']['new'] = name
        else:
            ret['result'] = False
            ret['comment'] = 'Failed to delete config'

    return ret
Ensure a specific configuration line does not exist in the running config
dataset/ETHPy150Open saltstack/salt/salt/states/nxos.py/config_absent