For me to remember:

Windows Registry Editor Version 5.00

If you want to delete a key from the registry you place a "-" before the name of the key in the registry file.


If your registry file is called "sample.reg" you can now issue the command "regedit sample.reg /s" and the key "key_to_be_deleted" including all subkeys are deleted from the registry.

Deleting Registry Keys via Batch
Tagged on:

One thought on “Deleting Registry Keys via Batch

Leave a Reply

Your email address will not be published. Required fields are marked *