Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Reg delete

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

Deletes a subkey or entries from the registry.

For examples of how to use this command, see Examples.

Reg delete <KeyName> [{/v ValueName | /ve | /va}] [/f]


Parameter Description


Specifies the full path of the subkey or entry to be deleted. To specify a remote computer, include the computer name (in the format \\ComputerName\) as part of the KeyName. Omitting \\ComputerName\ causes the operation to default to the local computer. The KeyName must include a valid root key. Valid root keys for the local computer are: HKLM, HKCU, HKCR, HKU, and HKCC. If a remote computer is specified, valid root keys are: HKLM and HKU.

/v <ValueName>

Deletes a specific entry under the subkey. If no entry is specified, then all entries and subkeys under the subkey will be deleted.


Specifies that only entries that have no value will be deleted.


Deletes all entries under the specified subkey. Subkeys under the specified subkey are not deleted.


Deletes the existing registry subkey or entry without asking for confirmation.


Displays help for reg delete at the command prompt.

The following table lists the return values for the reg delete operation.


Value Description





To delete the registry key Timeout and its all subkeys and values, type:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout

To delete the registry value MTU under HKLM\Software\MyCo on the computer named ZODIAC, type:


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft