Reg delete command in Windows

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:

  1. The qprocess command in Windows
  2. Qappsrv (query termserver) command in Windows
  3. The quser (query user) command in Windows
  4. The pubprn command and the pushprinterconnections command in Windows
4.5 ★ | 2 Vote

May be interested

  • Command at in WindowsCommand at in Windows
    the at command schedules commands and programs to run on a computer at a specified time with a specific date. you can only use the command at when schedule service is running.
  • Fsutil transaction command in WindowsFsutil transaction command in Windows
    the fsutil transaction command manages the ntfs transactions (ntfs transaction is a windows feature that allows to create, edit, rename, and delete files and folders).
  • Set command in WindowsSet command in Windows
    the set command helps show, set or remove cmd.exe environment variables.
  • How to Delete Undeletable Files in WindowsHow to Delete Undeletable Files in Windows
    sometimes you are faced with an error when you try to delete a file permanently. it may be spyware, malware, ad-ware or any trojan. in some situations, the file is being used by the essential windows programs such as windows explorer,...
  • Del command in WindowsDel command in Windows
    the del command deletes one or more files. this command is the same as the eraser command.
  • How to Create and Delete Files and Directories from Windows Command PromptHow to Create and Delete Files and Directories from Windows Command Prompt
    this wikihow teaches you how to use the windows command prompt to create and delete files and folders (also known as directories). the files you create at the prompt can be modified and managed with windows apps, including file manager and...
  • Use CMD to delete large folders on WindowsUse CMD to delete large folders on Windows
    large directories on the system are one of the culprits that consume a lot of system space. a lot of folders that you create, after deleting, will come back later. maybe it's junk folders that you try to remove.
  • How to delete a partition using the PowerShell commandHow to delete a partition using the PowerShell command
    you can delete any partition in windows 10 with a powershell command. here is the exact command and how to execute it.
  • A simple way to delete a folder with a long name on WindowsA simple way to delete a folder with a long name on Windows
    this is a situation that is quite common for windows users. this phenomenon is when we copy, cut, move, delete, rename ... or do anything to the directory, data file that has a length in the path that exceeds 255 characters in windows (theoretically on microsoft is 260 characters), the system will display the error as below. so how to delete files and folders with long path names ???
  • DELETE TOP command in SQL ServerDELETE TOP command in SQL Server
    the delete top command in sql server is used to delete records from a table in sql and limits the number of records based on an existing value or percentage.