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

20 lines
341 B
Markdown
Raw Normal View History

2019-03-11 11:58:11 +00:00
# reg delete
2019-10-18 03:33:27 +01:00
> 从注册表中删除键和值。
2019-03-11 11:58:11 +00:00
2019-10-18 03:33:27 +01:00
- 删除一个指定的键:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}}`
2019-10-18 03:33:27 +01:00
- 删除键中指定的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /v {{值}}`
2019-10-18 03:33:27 +01:00
- 递归删除指定键下所有的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /va`
2019-10-18 03:33:27 +01:00
- 在没有提示的情况下递归删除键中所有的值:
2019-03-11 11:58:11 +00:00
`reg delete {{键名}} /f /va`