2018-01-19 11:44:11 +00:00
|
|
|
# reg delete
|
|
|
|
|
|
|
|
> Delete keys or their values from the registry.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/reg-delete>.
|
2018-01-19 11:44:11 +00:00
|
|
|
|
|
|
|
- Delete a specific registry key:
|
|
|
|
|
|
|
|
`reg delete {{key_name}}`
|
|
|
|
|
|
|
|
- Delete a value under a specific key:
|
|
|
|
|
|
|
|
`reg delete {{key_name}} /v {{value}}`
|
|
|
|
|
|
|
|
- Delete all values recursively under the specified key:
|
|
|
|
|
|
|
|
`reg delete {{key_name}} /va`
|
|
|
|
|
2018-01-23 15:53:30 +00:00
|
|
|
- Forcefully delete all values recursively under a key without a prompt:
|
2018-01-19 11:44:11 +00:00
|
|
|
|
2018-01-23 15:53:30 +00:00
|
|
|
`reg delete {{key_name}} /f /va`
|