WshShell.RegDelete

Delete a value from the Registry
Syntax
WshShell.RegDelete "strRegName"

Arguments:

strRegName :
To delete a key instead of a value terminate strRegName
with a backslash character \

strRegName must start with one of

HKEY_CURRENT_USER or HKCU
HKEY_USERS
HKEY_LOCAL_MACHINE or HKLM
HKEY_CLASSES_ROOT or HKCR
HKEY_CURRENT_CONFIG

Example

Set WshShell = Wscript.CreateObject("Wscript.Shell")
WshShell.RegDelete "HKCU\Control Panel\Desktop\MyValue"
WshShell.RegDelete "HKCU\Control Panel\Desktop\MyKey\"

Delete SubKeys in order...
WshShell.RegDelete ("HKCU\Control Panel\Desktop\MyKey\MySubKey\");
WshShell.RegDelete ("HKCU\Control Panel\Desktop\MyKey\"); 

Make a Free Website with Yola.