Safe brute-force method
None of the other answers' methods worked on their own for me when trying to delete the file association for something like .htaccess
. This combined method worked (Windows 10):
Create a new empty file called something like
foo.exe
.Go to a file with the extension you want to reset and
Open with...
. Make sureAlways use this app to open .<extension> files
is ticked. ThenLook for another app on this PC
and choose thefoo.exe
you just created.Delete
foo.exe
.Double click the file again and dismiss the Open with box (this might not be necessary).
Now open regedit and delete the following keys:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.<extension> HKEY_CLASSES_ROOT\.<extension> HKEY_CLASSES_ROOT\Applications\foo.exe
Log off and in again.