---
title: "Discussion on \"Delete system registry subkeys and values via a .reg file\" | Hashnode"
description: "Discussion on \"Delete system registry subkeys and values via a .reg file\". You might know that on Windows machines using a .reg file you may add, update or delete system registry subkeys and values.\nTo delete a registry subkey you need to put a hyphen in front of the subkeys path like so\n[-HKEY_LOCAL_MACHINE\\Software\\Test]\n..."
url: "https://hashnode.com/posts/delete-system-registry-subkeys-and-values-via-a-reg-file/5e8b78dd5343b8352ea35b86"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Delete system registry subkeys and values via a .reg file](https://blog.stefanomapelli.com/delete-system-registry-subkeys-and-values-via-a-reg-file?utm_source=hashnode&utm_medium=feed)

You might know that on Windows machines using a .reg file you may add, update or delete system registry subkeys and values. To delete a registry subkey you need to put a hyphen in front of the subkeys path like so \[-HKEY\_LOCAL\_MACHINE\\Software\\Test\] ...

Apr 6, 2020 · 1 min read · blog.stefanomapelli.com  
Updated Jul 4, 2020  
Read the article

-   [#microsoft](https://hashnode.com/tag/microsoft)
-   [#windows](https://hashnode.com/tag/windows)

## Written by

[Stefano Mapelli](https://hashnode.com/@stefanomapelli)

@stefanomapelli

  
[View profile](https://hashnode.com/@stefanomapelli)

Senior Consultant

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
