tldr/pages.zh/windows/reg-delete.md

21 lines
447 B
Markdown
Raw Normal View History

2019-03-11 11:58:11 +00:00
# reg delete
> 从注册表中删除键和值。
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/reg-delete>.
2019-03-11 11:58:11 +00:00
- 删除一个指定的键:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}}`
- 删除键中指定的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /v {{值}}`
- 递归删除指定键下所有的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /va`
- 在没有提示的情况下递归删除键中所有的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /f /va`