RegDelete

RegDelete [/K] <key> [<param>]

Deletes the registry value or key.

Parameters

keyRegistry key name. Can begins with full hive name (for example, HKEY_USERS), or with short (for example, HKU).
paramParameter name. For delete «default» parameter, not set this or use empty value.

Switches

/KIn case param is empty or omit, the whole key will be deleted.
Be careful when using this switch!

Remarks

In case of delete error the %ERROR% variable will be set to 1.