How to uninstall Apps using Powershell


  1. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #1

    How to uninstall Apps using Powershell


    Many of the Universal Apps cannot be uninstalled because the button is inactive (grayed out). This might be 'by design' for the Technical Preview since Microsoft wants users to test the Apps.

    The preferred method is to use the uninstall button when it is active. The list below provides a way to uninstall an App when the button is NOT active.

    Launch an elevated PowerShell (Right click - Run as Administrator ...)

    Copy the command for the App you want to remove from the list below and paste it into the PowerShell window

    Example:
    To remove the Calculator App, copy the entire line under the App name
    Calculator
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsCalculator_10.1505.29000.0_x64__8wekyb3d8bbwe

    How to uninstall Apps using Powershell-psremovecalc.png

    The -Confirm parameter lets you to decide if you want to remove the App [ Yes ] or cancel the operation [ No ]


    Code:
    Alarms
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsAlarms_10.1505.12000.0_x64__8wekyb3d8bbwe
    
    Calculator
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsCalculator_10.1505.29000.0_x64__8wekyb3d8bbwe
    
    Camera
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsCamera_5.31.1.0_x64__8wekyb3d8bbwe
    
    Contact Support
    Remove-AppxPackage -Confirm -Package Windows.ContactSupport_10.0.3.0_neutral_neutral_cw5n1h2txyewy
    
    Get Started
    Remove-AppxPackage -Confirm -Package Microsoft.Getstarted_2.1.1.0_x64__8wekyb3d8bbwe
    
    Insider Hub
    Remove-AppxPackage -Confirm -Package Microsoft.Windows.InsiderHub_1000.10130.0.0_neutral_neutral_cw5n1h2txyewy
    
    MS Solitaire Collection
    Remove-AppxPackage -Confirm -Package Microsoft.MicrosoftSolitaireCollection_3.1.5151.0_x64__8wekyb3d8bbwe
    
    Maps
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsMaps_4.1505.50523.0_x64__8wekyb3d8bbwe
    
    Music
    Remove-AppxPackage -Confirm -Package Microsoft.ZuneMusic_3.6.10681.0_x64__8wekyb3d8bbwe
    
    OneNote
    Remove-AppxPackage -Confirm -Package Microsoft.Office.OneNote_17.4201.10031.0_x64__8wekyb3d8bbwe
    
    Photos
    Remove-AppxPackage -Confirm -Package Microsoft.Windows.Photos_15.610.18180.0_x64__8wekyb3d8bbwe
    
    Reading List
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsReadingList_6.3.9654.20540_x64__8wekyb3d8bbwe
    
    Scan
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsScan_6.3.9654.17133_x64__8wekyb3d8bbwe
    
    Sound Recorder
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsSoundRecorder_10.1505.11000.0_x64__8wekyb3d8bbwe
    
    Sports
    Remove-AppxPackage -Confirm -Package Microsoft.BingSports_4.3.123.0_x86__8wekyb3d8bbwe
    
    Video
    Remove-AppxPackage -Confirm -Package Microsoft.ZuneVideo_3.6.10801.0_x64__8wekyb3d8bbwe
    
    Weather
    Remove-AppxPackage -Confirm -Package Microsoft.BingWeather_4.3.123.0_x86__8wekyb3d8bbwe
    
    Windows Feedback
    Remove-AppxPackage -Confirm -Package Microsoft.WindowsFeedback_1000.10130.0.0_neutral_neutral_cw5n1h2txyewy
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    To remove everything that can be removed from all users with one single command, use this:

    Code:
    Get-AppxPackage -AllUsers | Remove-AppxPackage
    The progress shows which apps can and which cannot be removed:

    How to uninstall Apps using Powershell-2015-06-18_14h14_18.png

    Result, a clean and empty Start, All Apps only showing the apps you cannot remove:

    How to uninstall Apps using Powershell-2015-06-18_14h20_07.png
      My Computer


  3. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
    Thread Starter
       #3

    Kari said:
    To remove everything that can be removed from all users with one single command, use this:

    Get-AppxPackage -AllUsers | Remove-AppxPackage
    Thanks Kari,

    Piping the results of Get-AppxPackage into Remove-AppxPackage also removes the Store (beta) - at least it did on my machine.

    Before I wrote this thread, I tried adding the -Confirm parameter to the method you posted but decided that it was too much trouble answering each confirm. The use might get tired of answering and just hit the Yes to All button.

    Since Win10 is still preview and Apps might change before 29 July, your method with is sure to remove any Apps that might change package names and remove any new ones MS adds between now and then.

    The method you posted might also remove Apps that should not be removed (VClibs as shown in your image). You're right though, the Apps that are defined as integral to the system will throw an error and will not be removed.

    I decided to list the individual apps so they could decide which ones they wanted to remove.

    Bill
    .
      My Computer


  4. Posts : 10
    Windows 10 pro x64 N
       #4

    Hey guys,

    Sorry for replying to an old thread, but i figure its better than creating a new one

    I am at work right now, so this is untested but this powershell command should remove every app but the windows store

    Get-AppxPackage -AllUsers | Remove-AppxPackage | where {$_.Name -notlike "*Store*"}
    and you can add multiple variables to the end like so


    Get-AppxPackage -AllUsers | Remove-AppxPackage | where {$_.Name -notlike "*Store*|*calculator*"}
      My Computer


  5. Posts : 105
    Microsoft Windows 10 Home 64-bit 10586 Multiprocessor Free
       #5

    I found the same great instructions.
    I ran PowerShell using the easy, get rid of 'em all instructions.

    This is the PS error: Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation. (Exception from HRESULT: 0x80073CF3)

    I think these are just the ones that Windows will not let you remove - because the Apps page looks beautiful.
    Love PowerShell!
      My Computer


  6. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
    Thread Starter
       #6

    serpentxx said:
    .....
    I am at work right now, so this is untested but this powershell command should remove every app but the windows store
    Code:
    Get-AppxPackage -AllUsers | Remove-AppxPackage | where {$_.Name -notlike "*Store*"}
    and you can add multiple variables to the end like so
    Code:
    Get-AppxPackage -AllUsers | Remove-AppxPackage | where {$_.Name -notlike "*Store*|*calculator*"}
    Can you confirm that the vertical bar is an OR and not a pipe in -notlike "*Store*|*calculator*"
    When you get the chance :)

    I'm glad you posted, there is an Uninstalling Apps tutorial that more thoroughly covers the subject. Authors keep tutorials updated (sometimes from information in other threads), so consider tutorials as the authoritative source.


    Full Tutorial: Apps - Uninstall in Windows 10
      My Computer


  7. Posts : 105
    Microsoft Windows 10 Home 64-bit 10586 Multiprocessor Free
       #7

    Slartybart said:
    Can you confirm that the vertical bar is an OR and not a pipe in -notlike "*Store*|*calculator*"
    When you get the chance :)

    I'm glad you posted, there is an Uninstalling Apps tutorial that more thoroughly covers the subject. Authors keep tutorials updated (sometimes from information in other threads), so consider tutorials as the authoritative source.

    Full Tutorial: Apps - Uninstall in Windows 10
    Sorry, mate.

    I can only confirm that to make the pipeline, it is above the slash. On my keyboard, it is above the main keyboard ENTER key. As I ran the entire program and didn't create the text to copy, I didn't care about details. You can't go wrong copying and pasting from a widely recognized and trusted website, because even if it looks wrong on the viewing page (here, for instance), it will type correctly on Notepad.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:48.
Find Us




Windows 10 Forums