Deletes a registry key value of the given name, regardless of whether it currently exists or not.
regdelete <key> <value-name>
key is the name of the key and
value-name is the name of the value in
the registry key you wish to delete.
NeverShowExt value from the
ShellScrap registry key.
regdelete "[HKEY_CLASSES_ROOT\ShellScrap]" "NeverShowExt"
This command is Windows-only. It will cause an action script to terminate on a Unix agent.
In order to delete a non-empty registry key and all its sub-keys, you need to
create a file, say
del.reg, that looks like this:
There should be three lines in this file: the last line must be a blank. Note
- in front of the registry path. Now you can execute an action like
regedit /s del.reg
If the specified key doesn't already exist, it will be created by this command.