mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added CLI example for reg.delete_key_recursive
This commit is contained in:
parent
3e902e86b1
commit
4684b2ddd1
1 changed files with 9 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue