Added CLI example for reg.delete_key_recursive

This commit is contained in:
twangboy 2015-09-09 14:28:06 -06:00
parent 3e902e86b1
commit 4684b2ddd1

View file

@ -460,6 +460,15 @@ def delete_key_recursive(hive, key):
A dictionary listing the keys that deleted successfully as well as those
that failed to delete.
:rtype: dict
The following example will remove ``salt`` and all other subkeys from the
``SOFTWARE`` key in ``HKEY_LOCAL_MACHINE``:
CLI Example:
.. code-block:: bash
salt '*' reg.delete_key_recursive HKLM SOFTWARE\\salt
'''
# Functions for traversing the registry tree
def subkeys(key):