Remove appx package for all users

Fresh Windows 10 install. Somehow the MSN Weather app became corrupted. (Unable to launch) I removed the app with the following Powershell command:

Remove-AppxPackage -Package Microsoft.BingWeather_4.7.118.0_x86__8wekyb3d8bbwe

However, when running

Get-Appxpackage –Allusers

the package is still present. When I attempt to reinstall the app via the Windows Store, the download is skipped and the same corrupted package is installed.

I've tried restarting (many times) and using WSReset to no avail.

What can I do? Thank you!


Solution 1:

On Windows 10 1709 :

Get-AppxPackage -all *NAME_OF_THE_APPX* | Remove-AppxPackage -AllUsers

Solution 2:

This will work in windows 10 1809:

get-appxpackage *pattern* | remove-appxpackage -AllUsers

or

remove-appxpackage -AllUsers -Package somepackagefullname

This is currently not working:

remove-appxpackage -User somesid -Package somepackagefullname

Piping anything to remove-appxpackage with no options will only remove the packages of the current user. EDIT: actually I think this will take care of current users but not new users.