Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How to Remove File Association on Windows

How to Remove File Association on Windows

Abhishek SilwalBy Abhishek SilwalNovember 15, 2022
remove file association windows

Whenever you open a file in Windows, it runs the application associated with it and then opens it through that app. Sometimes, you may set a different default app for a file by accident or associate files that you don’t want to have an association for.

You can change the default apps for the files using the “Open with” option on the context menu. However, sometimes you need to remove the association and not just change it. In this article, we mention various ways you can use for this purpose.

Table of Contents

  • How to Remove File Association on Windows?
    • Change Registry Settings
    • Remove File Association Using Another File
    • Use Third-party Applications
    • Reset All File Type Association
    • Import File Type Association Configuration

How to Remove File Association on Windows?

Here are some of the ways you can use to remove file type association on Windows:

Change Registry Settings

The easiest way to remove file association on Windows is to delete the associated registry keys. However, you need to delete the keys for each association you want to remove. So, the process can be tedious if you want to remove multiple associations.

Regardless, we have mentioned the steps you need down below. Here, we use a PNG file as an example, so you need to replace .png with the extension whose file association you wish to remove. First, back up your registry to account for any unforeseen situations.

  1. Press Win + R to open Run.
  2. Type regedit and press Enter to load the Registry Editor.
  3. Then, navigate to Computer\HKEY_CLASSES_ROOT\.png
  4. Right-click on .png on the left sidebar and select Delete.
    delete-png-roots
  5. Confirm with Yes.
  6. In the same way, delete the following registry keys (if they exist):
    • Computer\HKEY_CLASSES_ROOT\SystemFileAssociations\.png
    • Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png
    • Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\Roaming\OpenWith\FileExts\.png
      delete-png-current-user-explorer

You can also create a registry merge file and delete these keys. To do so,

  1. Open Run.
  2. Type notepad and press Enter to open the Notepad.
  3. Paste the following lines in the text editor (while replacing .png with the extension you need):
    Windows Registry Editor Version 5.00

    [-HKEY_CLASSES_ROOT\.png]

    [-HKEY_CLASSES_ROOT\SystemFileAssociations\.png]

    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png]

    [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.png]
  4. Press Ctrl + Shift + S to save the file with a different extension.
  5. Go to any save location you want and set Save as type to All files.
  6. Set the File name to remove_png_association.reg and click on Save.
    remove-png-associations-reg
  7. Then, navigate to the location you saved the file through File Explorer.
  8. Double-click on remove_png_association.reg and confirm any prompts.

Remove File Association Using Another File

Deleting or uninstalling the app associated with a file also removes the association. However, if it’s not practical to uninstall your programs, you can associate the file with another file and then delete the other file to do the same.

Here’s one way you can do so:

  1. Open the Notepad text editor.
  2. Press Ctrl + Shift + S to save the file with a different extension.
  3. Go to any save location you want.
  4. Set the File name to anything you wish while giving it a random extension. Here, we use the example trickapp.nofile.
  5. Then, change the Save as type to All files and click on Save.
    trickapp-nofile
  6. Now, navigate to a file whose file association you wish to remove.
  7. Right-click on it and select Open with > Choose another app.
  8. Check Always use this app … and.
  9. Scroll through the options and click on More apps > Look for another app on this PC.
    always-use-this-app-more-apps
  10. Set the drop-down box on the right to All Files and then head over to the location where you saved the previous file (trickapp.nofile).
  11. Select the file and click Open.
  12. You’ll get the “This app can’t run on your PC” error message. Click Close.
  13. Then, go to trickapp.nofile or your file’s location and delete the file.
    delete-trickapp-nofile

Now, you should have removed the file association for the file you need. The next time you try opening such files, your system will prompt you to choose which app you want to use for the file.

Use Third-party Applications

Various third-party apps, such as Types, FileTypesMan, Unassoc, and so on, remove the association for various file types. They are very easy to use, so you can download and install one such app and use it.

Make sure you have checked the user reviews for their reliability before installing them. If you find any problem while deleting an association, you can visit their official websites for more information.

Reset All File Type Association

While this is not a way to remove file associations, you can reset all file type associations to the default settings through Windows Settings. Here’s how you can do so:

  1. Open Windows by pressing Win + I.
  2. Go to Apps > Default apps.
  3. Scroll to the bottom and click on Reset next to Reset all default apps.
    reset-app-file-association

Import File Type Association Configuration

You can also import the file association configuration from another PC with default settings to have the default configuration on your own. To do so,

  1. On the other computer, Open Run.
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
  3. Enter the following command to export the configuration to your Desktop folder:
    dism /online /Export-DefaultAppAssociations:“%UserProfile%\Desktop\AppConfig.xml”
    dism-export-file-association
  4. Now, transfer the AppConfig.xml file to your own computer.
  5. Open the Elevated Command Prompt on your PC.
  6. Enter the command below (Here, we assume the file is on the Desktop. If you have stored it in any other location, change the path accordingly):
    dism /online /Import-DefaultAppAssociations:“%UserProfile%\Desktop\AppConfig.xml”
how-to
Abhishek Silwal

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems.

Related Posts

how to make windows 11 look like windows 10

How to Make Windows 11 Look Like Windows 10

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
mouse not showing in chrome

Mouse Not Showing in Chrome? Here’s How to Fix It

January 25, 2023
how-to-move-taskbar-windows-11

How to Move Taskbar on Windows 11

January 24, 2023
stickers on windows

How to Add Stickers on Windows 11 Desktop

January 23, 2023
how to add weather to taskbar windows 11

How to Add Weather to Taskbar Windows 11

January 22, 2023
View 1 Comment

1 Comment

  1. omar on January 3, 2023 2:35 am

    nice,helpful. The registry script to delete some entries from registry solved my problem.

    Reply

Leave A Reply Cancel Reply

Latest Posts
how long does a cmos battery last

How Long Does a CMOS Battery Last

January 25, 2023
thunderbolt vs usb c

Thunderbolt Vs USB C: What’s the Difference

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
You may also like
watch-twitch-on-roku-tv

How to Watch Twitch on Roku TV

January 25, 2023
hp mouse not working

HP Mouse Not Working? Here’s How to Fix It

January 25, 2023
install-kodi-on-firestick

How to Install Kodi on Firestick (Step-By-Step Guide)

January 25, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.