{"id":20265,"date":"2020-12-09T09:32:48","date_gmt":"2020-12-09T04:02:48","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=20265"},"modified":"2023-08-05T23:22:08","modified_gmt":"2023-08-05T17:52:08","slug":"error-0x80073cfa-uninstall-app-removal-failed","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/error-0x80073cfa-uninstall-app-removal-failed\/","title":{"rendered":"Fix for Error 0x80073CFA when Uninstalling an App in Windows 10"},"content":{"rendered":"<p>When uninstalling a Store app in Windows 10, you may get the error <code>0x80073CFA<\/code>. This happens whether you use the Apps &amp; Features GUI or PowerShell command to remove the app. Many users have indicated that the error happens when uninstalling some game apps like Forza Motorsport, Forza Horizon, Asphalt: Airborne, etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20266\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/12\/80073CFA-error-uninstall-apps-1.jpg\" alt=\"0x80073CFA uninstalling apps error\" width=\"750\" height=\"322\" \/><\/p>\n<pre class=\"err\"><strong>We couldn't uninstall app_name<\/strong>\r\n\r\nThe operation did not complete successfully. Try again in a bit.\r\n\r\nThe error code is 0x80073CFA, in case you need it.<\/pre>\n<p>However, the error <code>0x80073CFA<\/code> is not specific to Microsoft gaming apps. It can happen for any app, for that matter.<\/p>\n<p>Attempting to uninstalling the app using <a href=\"https:\/\/www.winhelponline.com\/blog\/windows-10-store-apps-uninstaller-preinstalled-apps\/\">PowerShell&#8217;s<\/a> <code>Remove-AppxPackage<\/code> would result in the same error code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20267\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/12\/0x80073cfa-remove-package-nonremovable-0.png\" alt=\"0x80073CFA uninstalling apps error powershell\" width=\"751\" height=\"290\" \/><\/p>\n<pre class=\"err\">Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.\r\n(Exception from HRESULT: 0x80073CFA)\r\n\r\nerror 0x80070032: AppX Deployment Remove operation on package package_name from:\r\nC:\\WINDOWS\\SystemApps\\package_path failed. This app is part of Windows and\r\ncannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the computer using Turn\r\nWindows Features on or off. However, it may not be possible to uninstall the app.<\/pre>\n<p><em>(The above error happened when attempting to uninstall the in-box package named <code>Microsoft.Windows.PeopleExperienceHost<\/code> for the sake of illustration.)<\/em><\/p>\n<h2>Cause<\/h2>\n<p>The <code>0x80073CFA<\/code> error (&#8220;Removal failed. Please contact your software vendor.&#8221;) occurs if you try to uninstall a non-removable inbox app. Inbox apps are official Microsoft apps bundled with Windows 10 and installed during Windows 10 Setup &#8212; e.g., Photos, Calendar, Alarma, Camera, Calculator, People app, etc. Some of the inbox apps are &#8220;non-removable&#8221; and some are removable &#8212; e.g., the <a href=\"https:\/\/www.winhelponline.com\/blog\/reinstall-photos-app-windows-10\/\">Photos app<\/a>.<\/p>\n<p>The <code>StateRepository-Machine.srd<\/code> database has a field named IsInbox against app which may be set to <code>1<\/code> or\u00a0 <code>0<\/code>. If it&#8217;s set to <code>1<\/code>, it&#8217;s a designated inbox app. For non-removable apps, PowerShell&#8217;s <code>Get-AppxPackage &lt;PackageName&gt;<\/code> command will show that the package is <code>NonRemovable<\/code>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20269\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/12\/remove-package-nonremovable-1.png\" alt=\"get-appxpackage nonremovable\" width=\"750\" height=\"404\" \/><\/p>\n<p>If you need to trim down Windows by removing unused or unwanted apps, there is a way to forcibly remove them even though they&#8217;re marked as non-removable inbox apps. To do so, you need to first set the <code>IsInbox<\/code> value to <code>0<\/code> by editing the <code>StateRepository-Machine.srd<\/code> database.<!--more--><\/p>\n<h2>Solution for Error 0x80073CFA<\/h2>\n<p>To forcibly uninstall a stubborn or non-removable Store app and prevent the error <code>0x80070032<\/code>, follow these steps:<\/p>\n<h3>Step 1: Install Python3<\/h3>\n<p>Install Python3 if you don&#8217;t have it installed already.\u00a0You can download the Python3 installer from the following links:<\/p>\n<ul>\n<li>For Windows x86: https:\/\/www.python.org\/ftp\/python\/3.7.3\/python-3.7.3.exe<\/li>\n<li>For Windows x64: https:\/\/www.python.org\/ftp\/python\/3.7.3\/python-3.7.3-amd64.exe<\/li>\n<\/ul>\n<h3>Step 2: Get the Python script file: &#8220;Fix.py&#8221;<\/h3>\n<p>Download the Python script file named &#8220;Fix.py&#8221; from the following GitHub link:<\/p>\n<pre>https:\/\/gist.github.com\/DoubleLabyrinth\/ffae94cb9444bbdae1d11deeaa247310#file-fix-py<\/pre>\n<p><em>(Credits to the coder <a href=\"https:\/\/gist.github.com\/DoubleLabyrinth\" target=\"_blank\" rel=\"nofollow noopener\">DoubleLabyrinth<\/a> for this neat little script.)<\/em><\/p>\n<p>After downloading it, open &#8220;<code>Fix.Py<\/code>&#8221; in Notepad.<\/p>\n<p>Edit the code at line #8 and change the app name.\u00a0The script has the following code at line #8:<\/p>\n<pre>WHERE PackageFullName LIKE \"<strong>Microsoft.Windows.HolographicFirstRun<\/strong>%\";<\/pre>\n<p>You want to change that to the application name you&#8217;re trying to uninstall &#8211; e.g. if you&#8217;re trying to remove <code>Microsoft.Windows.PeopleExperienceHost<\/code>, add it there.<\/p>\n<pre>WHERE PackageFullName LIKE \"<strong>Microsoft.Windows.PeopleExperienceHost<\/strong>%\";<\/pre>\n<p>Save the Python script file &#8220;<code>Fix.py<\/code>&#8221; and close Notepad.<\/p>\n<div class=\"qt\"><strong>Note:<\/strong> If you don&#8217;t know the exact name of the app, you can open a PowerShell window and type:<\/p>\n<pre>get-appxpackage *partial_name_of_the_app*<\/pre>\n<p>Example:<\/p>\n<pre>get-appxpackage *peopleexperience*<\/pre>\n<p>From the PowerShell output, copy the app name shown adjacent to the &#8220;<code>Name:<\/code>&#8221; column.<\/p>\n<\/div>\n<h3>Step 3: Run the Python script<\/h3>\n<p>Open Command Prompt under the <a href=\"https:\/\/www.winhelponline.com\/blog\/run-program-as-system-localsystem-account-windows\/\">SYSTEM account<\/a>. The best way to do this is to download <a href=\"https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/psexec\" target=\"_blank\" rel=\"noopener nofollow\">PsExec.exe<\/a> from Windows Sysinternals.<\/p>\n<p>From an administrator Command Prompt, run the following command-line:<\/p>\n<pre>psexec.exe -i -s -d cmd.exe<\/pre>\n<p><em>(The above command assumes the folder that has <code>PsExec.exe<\/code> is in the PATH. If not, mention the full path to <code>PsExec.exe<\/code>)<\/em><\/p>\n<p>If the above command is successful, it opens a new Command Prompt window &#8212; but under the <code>LocalSystem<\/code> privileges.<\/p>\n<p>Switch to the Command Prompt (Local System) window and perform the rest of the procedure:<\/p>\n<p>First, backup the <code>StateRepository-Machine.srd<\/code> database file using the following command-line:<\/p>\n<pre>copy \"%ProgramData%\\Microsoft\\Windows\\AppRepository\\StateRepository-Machine.srd\" c:\\backup.srd<\/pre>\n<p>Then, run the Python script file using the following command-line syntax:<\/p>\n<pre>Python.exe scriptfilename.py<\/pre>\n<p><strong>Example:<\/strong><\/p>\n<pre>\"C:\\Users\\Ramesh Srinivasan\\AppData\\Local\\Programs\\Python\\Python37\\python.exe\" \"C:\\Users\\Ramesh Srinivasan\\Desktop\\fix.py\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20270\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/12\/0x80073cfa-remove-package-nonremovable-2.png\" alt=\"0x80073CFA store app remove using python script\" width=\"750\" height=\"207\" \/><\/p>\n<p>The following output means that the script has run successfully:<\/p>\n<pre>Trigger \"TRG_AFTER_UPDATE_Package_SRJournal\" has been cleared.\r\nIsInbox of \"Microsoft.Windows.PeopleExperienceHost_10.0.19041.423_neutral_neutral_cw5n1h2txyewy\" has been set to 0.\r\nTrigger \"TRG_AFTER_UPDATE_Package_SRJournal\" has been restored.<\/pre>\n<p>The script has successfully changed the <code>IsInbox<\/code> value data to <code>0<\/code> in the <code>StateRepository-Machine.srd<\/code> database.<\/p>\n<div class=\"qt\">\n<h3>Manual procedure<\/h3>\n<p>As an alternative to the Python script method, you can manually modify the <code>IsInbox<\/code> value by using the &#8220;DB Browser for SQLite&#8221; software.\u00a0However, in Windows 2004 and 20H2, you&#8217;ll need to remove the <code>AFTERDELETE<\/code> (&#8220;TRG_AFTERDELETE_Package_Key&#8221;) trigger first. After modifying the <code>IsInbox<\/code> value, restore the <code>AFTERDELETE<\/code> trigger.<\/p>\n<p>Or else, you&#8217;ll see the following error:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20271\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/12\/sqlite-error-sr-journal.png\" alt=\"sqlite sr_journal trigger error\" width=\"260\" height=\"119\" \/><\/p>\n<pre class=\"err\">DB Browser for SQLite\r\n\r\nError changing data:\r\nno such function: is_srjournal_enabled<\/pre>\n<p>For the manual procedure, you may use the excellent instructions at this site <strong>\u2192<\/strong> <a href=\"https:\/\/blog.sreb.me\/2018\/11\/28\/force-remove-uwp-app\/\" target=\"_blank\" rel=\"nofollow noopener\">How To Force Remove Windows Store (UWP) Apps<\/a>.<\/p>\n<\/div>\n<h3>Step 4: Uninstall the app using PowerShell<\/h3>\n<p>After completing Steps 1-3, you should be able to uninstall the problematic app now using PowerShell.<\/p>\n<p>Run the command:<\/p>\n<pre>Get-AppxPackage &lt;app_name&gt; | Remove-AppxPackage<\/pre>\n<p>To remove it for all users, run the following from an admin PowerShell window:<\/p>\n<pre>Get-AppxPackage -allusers &lt;app_name&gt; | Remove-AppxPackage<\/pre>\n<p>That fixes the error <code>0x80073CFA<\/code>. On pre-Windows v2004 systems, you may be able to modify the <code>IsInbox<\/code> value directly using SQLite Browser utility without removing the trigger(s). This post is based on the Windows 10 version 20H2 build 10.0.19042.685 which is the current build as of this post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When uninstalling a Store app in Windows 10, you may get the error 0x80073CFA. This happens whether you use the Apps &amp; Features GUI or PowerShell command to remove the app. Many users have indicated that the error happens when uninstalling some game apps like Forza Motorsport, Forza Horizon, Asphalt: Airborne, etc. We couldn&#8217;t uninstall &#8230; <a title=\"Fix for Error 0x80073CFA when Uninstalling an App in Windows 10\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/error-0x80073cfa-uninstall-app-removal-failed\/\" aria-label=\"Read more about Fix for Error 0x80073CFA when Uninstalling an App in Windows 10\">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":[6,8],"tags":[191,396],"class_list":["post-20265","post","type-post","status-publish","format-standard","hentry","category-utilities","category-windows-10","tag-error-messages","tag-powershell"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":77054,"url":"https:\/\/www.winhelponline.com\/blog\/store-error-0x80073cfa-0x80073cf9\/","url_meta":{"origin":20265,"position":0},"title":"Store Apps Error 0x80073CFA, 0x80073CF9, and 0x80076BE","author":"Ramesh","date":"November 19, 2024","format":false,"excerpt":"When you install, uninstall, or update Store apps, the error 0x80073CFA, 0x80073CF9, or 0x80076BE may occur. There was an issue in the WinAppSDK 1.6.2 release which affected Windows 10 version 19045 machines. It seems that Microsoft has pulled the 1.6.2 release later. Resolution Update - Nov 22, 2024 Please install\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":8675,"url":"https:\/\/www.winhelponline.com\/blog\/windows-10-store-apps-uninstaller-preinstalled-apps\/","url_meta":{"origin":20265,"position":1},"title":"How to Uninstall Preinstalled Apps in Windows 10\/11","author":"Ramesh","date":"April 15, 2019","format":false,"excerpt":"In early builds of Windows 10, no user interface option was provided in the Settings to remove a preinstalled Store app (UWP). On those builds, the only way was to use PowerShell to remove or reinstall the apps. Later Windows 10 builds facilitated the reset or uninstallation of apps via\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":"uninstall built-in apps powershell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/powershell-uninstall-apps-gridview-passthru.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/powershell-uninstall-apps-gridview-passthru.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/powershell-uninstall-apps-gridview-passthru.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/powershell-uninstall-apps-gridview-passthru.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":28795,"url":"https:\/\/www.winhelponline.com\/blog\/microsoft-winrt-storage-api-open-with\/","url_meta":{"origin":20265,"position":2},"title":"Fix: &#8220;Microsoft WinRT Storage API&#8221; Appears in Open With Menu","author":"Ramesh","date":"September 28, 2022","format":false,"excerpt":"After installing Windows 11 Feature Update, when you right-click on an image file such as JPG, PNG, BMP, etc., and click Open With, you might see a strange entry named \"Microsoft WinRT Storage API\" with no icon. Clicking on the Microsoft WinRT Storage API entry may throw one of the\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":"WinRT entry in Open with dialog - Movies & TV","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/winrt-movies-and-tv.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/winrt-movies-and-tv.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/winrt-movies-and-tv.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/winrt-movies-and-tv.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1888,"url":"https:\/\/www.winhelponline.com\/blog\/reinstall-photos-app-windows-10\/","url_meta":{"origin":20265,"position":3},"title":"How to Completely Uninstall and Reinstall the Photos App","author":"Ramesh","date":"March 29, 2016","format":false,"excerpt":"If the Photos app does not start or causes an error and the reset and repair method hasn't helped, you can completely uninstall and reinstall the app using PowerShell. Here are the steps for Windows 10 and 11. RELATED: How to Install Windows 10 Photos App on Windows 11 Uninstall\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":"reinstall photos app powershell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/ps-reinstall-photos-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/ps-reinstall-photos-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/03\/ps-reinstall-photos-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":17795,"url":"https:\/\/www.winhelponline.com\/blog\/windows-store-error-0x800706d9\/","url_meta":{"origin":20265,"position":4},"title":"Error 0x800706D9 Installing or Updating Store Apps","author":"Ramesh","date":"August 8, 2020","format":false,"excerpt":"You may be unable to download new apps or update existing apps using the Microsoft Store due to error 0x800706D9 -- Something unexpected happened. Error code 0x800706D9 translates to \"There are no more endpoints available from the endpoint mapper\", which doesn't make much sense for the end-user. Also, the same\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":"store apps error 0x800706D9","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4855,"url":"https:\/\/www.winhelponline.com\/blog\/restore-windows-store-windows-10-uninstall-with-powershell\/","url_meta":{"origin":20265,"position":5},"title":"Restore Microsoft Store in Windows 10\/11 after uninstalling it with PowerShell","author":"Ramesh","date":"December 21, 2016","format":false,"excerpt":"Windows 10 and 11 come with many built-in Store apps that may not be useful to you. As you may have known, PowerShell allows you to uninstall individual apps or all apps using a single command. If you had used the following command to uninstall all bundled apps in Windows\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":"Microsoft Store app installer from AppStore.","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/20265","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=20265"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/20265\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=20265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=20265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=20265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}