Deleting built-in apps from Windows 10

Sunday, March 17, 2024


Ever tried to delete the built-in/preinstalled Windows 10 apps but they won’t go away?

C:\Windows\System32> Get-AppxPackage *Zune* -AllUsers | Remove-AppxPackage -AllUsers
Remove-AppxPackage : Removal failed. Please contact your software vendor.
Deployment Remove operation with target volume C: on Package Microsoft.ZuneMusic_10.20122.11121.0_x64__8wekyb3d8bbwe
from:   failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
At line:1 char:35
+ Get-AppxPackage *Zune* -AllUsers |Remove-AppxPackage -AllUsers
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
   ds.RemoveAppxPackageCommand

The solution is here. Use -PackageTypeFilter:

C:\Windows\System32> Get-AppxPackage *Zune* -PackageTypeFilter Main, Bundle, Resource -AllUsers | Remove-AppxPackage -AllUsers

There, gone! You can check C:\Program Files\WindowsApps and see that the directory has been deleted.

Tags: windows | Posted at 13:40 | Comments (0)


Comments

There are no comments.

Add a comment

Name:
Email: (optional, not displayed to public)
URL: (do not fill this in — leave blank!)

Comment: