@REGDELKEY[HKEY...\key] : Deletes the specified key and all of its subkeys. Returns 1 if the key was deleted, 0 otherwise. The expression must be enclosed in double quotes if it contains any separator characters (space, comma, or tab).

 

If the key name begins with \\machinename, @REGDELKEY opens the registry on a remote machine. The remote registry service must be running on the remote machine, and you must have access and permissions. The HKEY parameter can be one of the following keys:

 

HKEY_CLASSES_ROOT (or HKCR)

HKEY_CURRENT_CONFIG (or HKCC)

HKEY_CURRENT_USER (or HKCU)

HKEY_LOCAL_MACHINE (or HKLM)

HKEY_PERFORMANCE_DATA (or HKPD)

HKEY_USERS (or HKU)

 

Note: use EXTREME caution with this function. It has the potential for causing irreparable damage to your registry and can even prevent Windows from booting!

 

See @REGCREATE for information on the format of the key name.

 

Example:

 

echo %@regcreate["HKEY_CURRENT_USER\Software\JP Software\Take Command 28\foo"]

echo %@regdelkey["HKEY_CURRENT_USER\Software\JP Software\Take Command 28\foo"]

1