Delete Registry Entry

Bob Collison
Bob Collison used Ask the Experts™
Hi Experts I have the following code in a .reg file to add a Registry Entry.

What is the code to 'delete' (reverse) the addition?  i.e Turn it Off.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location9]
"Description"="SAS Install"
"Date"="2016-10-10 17:55"

Bob C.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Edward PamiasTeam Lead RRS Desk
Top Expert 2016
This site includes all the relevant codes on how to delete the entry.
Read the lower part of this MS article:,-modify,-or-delete-registry-subkeys-and-values-by-using-a-.reg-file
header is Deleting Registry Keys and Values
RaminTechnical Advisor

I think you can also do it  with Registrar Registry Manager.
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Technical Specialist
Awarded 2017
Distinguished Expert 2018
You can use REG.exe
REG.exe DELETE "HKCU\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location9" /f

Open in new window

Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Glad we could help.
Please remember to endorse my, or any other expert's comments that you found helpful by clicking on the "Thumb's Up" button
Bob CollisonSystem Architect


Thanks for the info.  I wasn't aware of this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial