Reg delete command in Windows
The reg delete command helps delete subkeys or entries in the registry
The reg delete command helps delete subkeys or entries in the registry.To learn more about how to use this command, see the example section below.
Syntax command reg delete
Reg delete [{vv ValueName | /ve | / ve | /va}] [/f] / va}] [/ f]
Parameter command reg delete
Parameters
Describe
Specify the full path of the first subkey to be compared.To specify a remote computer, attach the computer name (in the format) as part of the KeyName parameter.In addition, the KeyName parameter must also include a valid root key.Valid root keys for local computers are: HKLM, HKCU, HKCR, HKU and HKCC.If the remote computer is specified, valid root keys will be HKLM and HKU.
/ v
Delete a specific entry in a subkey.If no items are specified, then all entry entries and within the specified subkey will be deleted.
/ ve
Specifies that entries without specific values will be deleted.
/ va
Delete all entries according to the specified subkey.The subkey located in the specified subkey will not be deleted.
/ f
Delete the current subkey or registry entry without requiring confirmation.
/?
Show help at thecommand prompt.
Command line reg delete
The following table lists the return values for the reg delete command :
Value
Meaning
0
Success
first
Failure
For example, the command reg delete
To delete the registry key named Timeout and all its subkeys and values, enter:
REG DELETE HKLMSoftwareMyCoMyAppTimeout
To delete the MTU registry value in HKLMSoftwareMyCo on a computer named ZODIAC, enter:
REG DELETE ZODIACHKLMSoftwareMyCo / v MTU
See more:
- The qprocess command in Windows
- Qappsrv (query termserver) command in Windows
- The quser (query user) command in Windows
- The pubprn command and the pushprinterconnections command in Windows
- Rd command in Windows
- 4 ways to delete Windows.old folder on Windows 10 computer
- How to Create and Delete Files or Folders from Windows Command Prompt
- How to Add and Delete User Accounts with Command Prompt on Windows
- How to force delete files in Windows 10
- Sub-commands in nslookup Windows command (Part 2)
- Sub-commands in the nslookup Windows command (Part 1)
- Sub-commands in nslookup Windows command (Part 3)
- Command at in Windows
- Fsutil transaction command in Windows
- How to Delete Undeletable Files in Windows
- Set command in Windows
- How to Create and Delete Files and Directories from Windows Command Prompt
- Del command in Windows