{"id":3082,"date":"2016-05-05T13:18:04","date_gmt":"2016-05-05T07:48:04","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=3082"},"modified":"2022-07-20T22:25:34","modified_gmt":"2022-07-20T16:55:34","slug":"remove-file-association-windows","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/remove-file-association-windows\/","title":{"rendered":"How to Remove File Type Associations Using Registry Editor"},"content":{"rendered":"<p>Associating a file type with a program can be done using several ways, such as using the Open with&#8230; dialog and selecting the &#8220;Always use this app to open&#8221; checkbox, or via Default Programs or Default Apps. While you can set or change associations using GUI, there is no option provided to delete an existing file type association.<\/p>\n<p>This post tells you how to remove file type associations using the Registry Editor.<!--more--><\/p>\n<h2>Remove a File Type Association Using Registry Editor<\/h2>\n<p>Let&#8217;s say you&#8217;ve incorrectly associated a file type named <b>.bak<\/b>, and want to remove the association. Use these steps to remove the file association settings (for .bak) from the registry.<\/p>\n<div class=\"qt\"><em>Before proceeding, <a href=\"https:\/\/www.winhelponline.com\/blog\/create-restore-protection-point-rollback-windows\/\">create a System Restore Point<\/a>. Additionally, export each registry key listed below to a <a href=\"https:\/\/www.winhelponline.com\/blog\/how-to-use-reg-files-registration-entries-windows\/\">.reg file<\/a> prior to deleting, just in case you need them.<\/em><\/div>\n<ol>\n<li>Start the Registry Editor (<code>regedit.exe<\/code>), and go to this branch:\n<pre>HKEY_CLASSES_ROOT\\.bak<\/pre>\n<\/li>\n<li>Note down the <b>(default)<\/b> value data in the right pane. It&#8217;s the ProgID associated with that file type.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8685\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/file-asso-find-progid.png\" alt=\"find progid for a file type registry\" width=\"701\" height=\"266\" \/><\/li>\n<li>Right-click the key <b>.bak<\/b>, and choose Delete. Click Yes to confirm.<\/li>\n<li>Go to the following <code>HKEY_CURRENT_USER<\/code> keys and delete the <code>.bak<\/code> key.\n<pre>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.bak\r\nHKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Roaming\\OpenWith\\FileExts\\.bak<\/pre>\n<p>This should remove the file association settings for <code><strong>.bak<\/strong><\/code> file type. The deleted file type should now be treated as <em>unknown<\/em> by Windows; which is exactly what we wanted.<\/p>\n<div class=\"qt\">\n<h4>Delete the Progid as well (optional)<\/h4>\n<p>If you also want to clean up the ProgID key for that file type, which you noted (<code>bak_auto_file<\/code>) in Step #3 above, you must do so only if that ProgID <code>bak_auto_file<\/code> is not used by any other file type. This is important.<\/p>\n<p>How to find if any other file type(s) is mapped to the same ProgID?\u00a0 Do a search (for <u>Data<\/u> containing the ProgID string &#8211; <u>match whole string only<\/u>) in the Registry Editor. Or run one of the commands given below to find it out.<\/p>\n<p>This time, let&#8217;s take the example of <code>txtfile<\/code> Progid. To view the list of file types that use the <code>txtfile<\/code> ProgID, run:<\/p>\n<p><strong>Example: txtfile (progid used for .txt)<\/strong><\/p>\n<pre>assoc | findstr \/i \"txtfile\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8684\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/findstr-assoc-file-association.png\" alt=\"assoc findstr progid association\" width=\"700\" height=\"177\" \/><\/p>\n<p>(or)<\/p>\n<pre>reg query hkcr \/d \/f \"txtfile\" \/s<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8683\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/reg-query-progid-file-association.png\" alt=\"reg query progid association\" width=\"700\" height=\"309\" \/><\/p>\n<p>In the above case, the following file extensions are still using the <b>txtfile<\/b> progid:<\/p>\n<pre>.LOG | .SCP | .TXT | .WTX<\/pre>\n<p>So, you <u>should not remove<\/u> the <code>HKEY_CLASSES_ROOT\\txtfile<\/code> registry key, as it would break the association settings for other file types that use this key.<\/p>\n<\/div>\n<p>Now, let&#8217;s use the above method and find out if any other file extensions are using the <code>bak_auto_file<\/code> Progid. Running the command for <code>bak_autofile<\/code>, you get this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8686\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/assoc-query-progid-file-association.png\" alt=\"assoc findstr progid association\" width=\"699\" height=\"151\" \/><\/p>\n<p>As <u>no other file types<\/u> are using this ProgID, you can safely delete this key:<\/p>\n<pre>HKEY_CLASSES_ROOT\\bak_autofile<\/pre>\n<\/li>\n<\/ol>\n<h4>Summary<\/h4>\n<p>To remove the file association settings for <code>.bak<\/code> file type, we&#8217;ve deleted the following registry keys:<\/p>\n<pre>HKEY_CLASSES_ROOT\\.bak\r\nHKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.bak\r\nHKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\Roaming\\OpenWith\\FileExts\\.bak\r\nHKEY_CLASSES_ROOT\\bak_auto_file<\/pre>\n<p>That&#8217;s it! Hope this guide helped you delete an unwanted or incorrect file type association on your Windows computer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Associating a file type with a program can be done using several ways, such as using the Open with&#8230; dialog and selecting the &#8220;Always use this app to open&#8221; checkbox, or via Default Programs or Default Apps. While you can set or change associations using GUI, there is no option provided to delete an existing &#8230; <a title=\"How to Remove File Type Associations Using Registry Editor\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/remove-file-association-windows\/\" aria-label=\"Read more about How to Remove File Type Associations Using Registry Editor\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[209,441],"class_list":["post-3082","post","type-post","status-publish","format-standard","hentry","category-windows","tag-file-association","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":25987,"url":"https:\/\/www.winhelponline.com\/blog\/cant-associate-jpg-png-files-default-apps\/","url_meta":{"origin":3082,"position":0},"title":"[Fix] Can&#8217;t Change File Association via Default Apps in Windows 11","author":"Ramesh","date":"January 28, 2022","format":false,"excerpt":"After installing third-party software on your Windows 11 computer, the ability to associate file types such as JPG, JPE, JPEG, PNG, MPG, MPEG, and other file types may be hampered. Here are the issues you may encounter when attempting to change the file association for the said file types. When\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"windows 11 default apps can't associate file","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/w11-default-apps-asso-fix-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/w11-default-apps-asso-fix-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/w11-default-apps-asso-fix-3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1163,"url":"https:\/\/www.winhelponline.com\/blog\/unassociate-file-types-windows-7-vista\/","url_meta":{"origin":3082,"position":1},"title":"A Utility to Unassociate File Types in Windows 7 and Vista","author":"Ramesh","date":"September 5, 2007","format":false,"excerpt":"Here is a utility that helps you unassociate a file type quickly in your Windows Vista or Windows 7 computer without the need to edit the registry manually. Windows 7 & Vista do not provide a GUI option to unassociate file types, thus the need arises for such a tool\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.winhelponline.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9248,"url":"https:\/\/www.winhelponline.com\/blog\/set-default-browser-file-associations-command-line-windows-10\/","url_meta":{"origin":3082,"position":2},"title":"Change Default Apps and File Association via Command-line","author":"Ramesh","date":"May 12, 2019","format":false,"excerpt":"Summary: This post explains how to change the default apps or file associations using the command-line in Windows 10 and 11. This can be accomplished by a command-line tool named SetUserFTA. In Windows 10 and 11, setting per-user file associations for a logged-on user account has to be done manually\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/setuserfta.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/setuserfta.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/setuserfta.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/setuserfta.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1627,"url":"https:\/\/www.winhelponline.com\/blog\/stop-photos-app-taking-over-image-file-associations\/","url_meta":{"origin":3082,"position":3},"title":"How to Stop Photos App from Resetting Image File Associations?","author":"Ramesh","date":"February 13, 2016","format":false,"excerpt":"This post explains how to prevent the modern Photos app from taking over the defaults for all image files types. We saw how to prevent Edge from taking over the PDF and HTM association settings. The same method can be used for the Photos app, or for any other app\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-photos-takeover-3.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":921,"url":"https:\/\/www.winhelponline.com\/blog\/remove-always-use-the-selected-program-open-with\/","url_meta":{"origin":3082,"position":4},"title":"How to Remove &#8220;Always use the selected program&#8221; Option from Open With Dialog","author":"Ramesh","date":"August 13, 2009","format":false,"excerpt":"The Open With dialog in Windows allows you to open a file using different programs. Also, you can create or change the file type association by selecting the \"Always use the selected program to open this kind of file\" checkbox in the Open With dialog.Sometimes, users wrongly associate file types\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":62063,"url":"https:\/\/www.winhelponline.com\/blog\/html-association-default-apps-fix\/","url_meta":{"origin":3082,"position":5},"title":"Can&#8217;t Change HTML Association when MS Edge is the Default App","author":"Ramesh","date":"September 20, 2023","format":false,"excerpt":"You may be unable to change the default app for HTML file type in Windows 11. The file type may be associated with Microsoft Edge, and you cannot change the default app to Code Editor, Visual Studio Code, or any other app. When you try to change it via Default\u2026","rel":"","context":"In &quot;Microsoft Edge&quot;","block_context":{"text":"Microsoft Edge","link":"https:\/\/www.winhelponline.com\/blog\/category\/edge\/"},"img":{"alt_text":"html files cannot associate in windows 11","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/09\/edge-html-asso-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/09\/edge-html-asso-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/09\/edge-html-asso-4.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=3082"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3082\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=3082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=3082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=3082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}