computing
  • 0

Delete Registry All Sub Keys Only

  • 0

Hi

I am trying to delete all sub keys within a sub key with a .reg file but not sure how, I can enter a “-” symbol in front of the registry, but I don’t know what it is after the key, I just wanted to delete all the sub keys. Any ideas as I have tried wile card “*” at the end but it didn’t work.

eg: HKLM\software\Microsoft\WindowsNT\Current Version\Print\Provider\…….

Delete all sub keys after provider but leave Provider .

Thanks

message edited by kiwi_hk

Share

1 Answer

  1. You can create a REG-File like this:

    –SNIP–

    Windows Registry Editor Version 5.00
    
    [-HKLM\software\Microsoft\WindowsNT\Current Version\Print\Provider\Something]
    
    

    –SNIP–

    save the file and doubleclick on it.
    It will delete Something and all it’s subkeys.
    The last given key, in this case, Something, will also be deletet.

    message edited by paulsep

    • 0