yes... just add a - to the key in the registry file.
Supposing u wanna delete a tree itself, like this Alexa Registry one which is
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{c95fe080-8f5d-11d2-a20b-00aa003c157a}]
Just add a - within the keyname like this
[
-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{c95fe080-8f5d-11d2-a20b-00aa003c157a}]
But if u wanna remove an individual item from the registry, place the minus sign after the equal sign as in
Code:
[HKEY_CURRENT_USER\DummyTree]
[FONT=Courier New][COLOR=#000000]"ValueToBeRemoved"=-[/COLOR][/FONT]
Any doubts, check it out in the Microsoft site itself.
Also u can delete the key directly from the
Run command!
reg delete HKLM\Software\test would delete the HKEY_LOCAL_MACHINE\Software\test value. When you enter the command you will be prompted if you really want to delete, enter Y. To avoid the confirmation add /force to the command, e.g.
reg delete HKLM\Software\test /force
For other reg classes
HKCR HKEY_CLASSES_ROOT
HKCU HKEY_CURRENT_USER
HKLM HKEY_LOCAL_MACHINE
HKU HKEY_USERS
HKCC HKEY_CURRENT_CONFIG