Deleting Reg Keys With Reg Files

Instead of deleting reg files the manual way one can create reg files to do that job without having to get ones hands dirty digging through all those registry entries.

Warning
Deleting reg keys indescriminately can and often leads to an inoperable system. Use with caution

To delete a setting using a .reg file, set its value to a hyphen (-), as in this example:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Test]"BinarySetting"=-
To delete a key, add a hyphen to the start of the key name, as in this example:

Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Test]

Remember these commands are to be typed in a text file first and then saved as a .reg file.

0 comments: