def key_absent(name, use_32bit_registry=False):
    "\n    .. versionadded:: 2015.5.4\n\n    Ensure a registry key is removed. This will remove a key and all value\n    entries it contains. It will fail if the key contains subkeys.\n\n    :param str name: A string representing the full path to the key to be\n    removed to include the hive and the keypath. The hive can be any of the\n    following:\n\n    - HKEY_LOCAL_MACHINE or HKLM\n    - HKEY_CURRENT_USER or HKCU\n    - HKEY_USER or HKU\n\n    :param bool use_32bit_registry: Use the 32bit portion of the registry.\n    Applies only to 64bit windows. 32bit Windows will ignore this parameter.\n    Default is False.\n\n    :return: Returns a dictionary showing the results of the registry operation.\n    :rtype: dict\n\n    The following example will delete the ``SOFTWARE\\Salt`` key and all subkeys\n    under the ``HKEY_CURRENT_USER`` hive.\n\n    Example:\n\n    .. code-block:: yaml\n\n        'HKEY_CURRENT_USER\\SOFTWARE\\Salt':\n          reg.key_absent:\n            - force: True\n\n    In the above example the path is interpreted as follows:\n\n    - ``HKEY_CURRENT_USER`` is the hive\n    - ``SOFTWARE\\Salt`` is the key\n    "
    ret = {'name': name, 'result': True, 'changes': {}, 'comment': ''}
    (hive, key) = _parse_key(name)
    if (not __utils__['reg.read_value'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)['success']):
        ret['comment'] = '{0} is already absent'.format(name)
        return ret
    ret['changes'] = {'reg': {'Removed': {'Key': '{0}\\{1}'.format(hive, key)}}}
    if __opts__['test']:
        ret['result'] = None
        return ret
    __utils__['reg.delete_key_recursive'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)
    if __utils__['reg.read_value'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)['success']:
        ret['result'] = False
        ret['changes'] = {}
        ret['comment'] = 'Failed to remove registry key {0}'.format(name)
    return ret
.. versionadded:: 2015.5.4

Ensure a registry key is removed. This will remove a key and all value
entries it contains. It will fail if the key contains subkeys.

:param str name: A string representing the full path to the key to be
removed to include the hive and the keypath. The hive can be any of the
following:

- HKEY_LOCAL_MACHINE or HKLM
- HKEY_CURRENT_USER or HKCU
- HKEY_USER or HKU

:param bool use_32bit_registry: Use the 32bit portion of the registry.
Applies only to 64bit windows. 32bit Windows will ignore this parameter.
Default is False.

:return: Returns a dictionary showing the results of the registry operation.
:rtype: dict

The following example will delete the ``SOFTWARE\Salt`` key and all subkeys
under the ``HKEY_CURRENT_USER`` hive.

Example:

.. code-block:: yaml

    'HKEY_CURRENT_USER\SOFTWARE\Salt':
      reg.key_absent:
        - force: True

In the above example the path is interpreted as follows:

- ``HKEY_CURRENT_USER`` is the hive
- ``SOFTWARE\Salt`` is the key
def key_absent(name, use_32bit_registry=False):
    "\n    .. versionadded:: 2015.5.4\n\n    Ensure a registry key is removed. This will remove a key and all value\n    entries it contains. It will fail if the key contains subkeys.\n\n    :param str name: A string representing the full path to the key to be\n    removed to include the hive and the keypath. The hive can be any of the\n    following:\n\n    - HKEY_LOCAL_MACHINE or HKLM\n    - HKEY_CURRENT_USER or HKCU\n    - HKEY_USER or HKU\n\n    :param bool use_32bit_registry: Use the 32bit portion of the registry.\n    Applies only to 64bit windows. 32bit Windows will ignore this parameter.\n    Default is False.\n\n    :return: Returns a dictionary showing the results of the registry operation.\n    :rtype: dict\n\n    The following example will delete the ``SOFTWARE\\Salt`` key and all subkeys\n    under the ``HKEY_CURRENT_USER`` hive.\n\n    Example:\n\n    .. code-block:: yaml\n\n        'HKEY_CURRENT_USER\\SOFTWARE\\Salt':\n          reg.key_absent:\n            - force: True\n\n    In the above example the path is interpreted as follows:\n\n    - ``HKEY_CURRENT_USER`` is the hive\n    - ``SOFTWARE\\Salt`` is the key\n    "
    ret = {'name': name, 'result': True, 'changes': {}, 'comment': }
    (hive, key) = _parse_key(name)
    if (not __utils__['reg.read_value'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)['success']):
        ret['comment'] = '{0} is already absent'.format(name)
        return ret
    ret['changes'] = {'reg': {'Removed': {'Key': '{0}\\{1}'.format(hive, key)}}}
    if __opts__['test']:
        ret['result'] = None
        return ret
    __utils__['reg.delete_key_recursive'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)
    if __utils__['reg.read_value'](hive=hive, key=key, use_32bit_registry=use_32bit_registry)['success']:
        ret['result'] = False
        ret['changes'] = {}
        ret['comment'] = 'Failed to remove registry key {0}'.format(name)
    return ret