Forrest logo
back to the reg tool

reg-delete:tldr:76792

reg-delete: Delete all values recursively under the specified key.
$ reg delete ${key_name} /va
try on your machine

The command "reg delete ${key_name} /va" is used in Windows command prompt or PowerShell to delete a registry key and its associated values.

Here's a breakdown of the command:

  • "reg": This is the command used to interact with the Windows registry.
  • "delete": This is the subcommand that instructs the "reg" command to delete a specified key.
  • "${key_name}": This is a placeholder for the name of the registry key you want to delete. You need to replace "${key_name}" with the actual name of the key you want to delete.
  • "/va": This is an option that specifies to also delete all the values (entries) within the registry key being deleted.

For example: If you want to delete a registry key named "MyKey" located in the "HKEY_CURRENT_USER\Software" path, you would run the command as follows: "reg delete HKEY_CURRENT_USER\Software\MyKey /va"

Please note that modifying or deleting registry keys can have serious consequences on the stability and functionality of your system. It is recommended to exercise caution and create backups before making any changes to the registry.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the reg tool