Package providers are bundled with the WMF installation.

You can easily add package providers (and remove) if you know the search locations (even your own custom package providers).

Find where your package-provider is installed:

$p = (Get-packageProvider -name Chocolatey);
$p.ProviderPath

If you remove / move the assembly to somewhere outside the providers default search path; it will be unavailable (NB: Restart your host too see the effects).

Similarly can you add package providers by copying a exe / dll that implements the specifications for a packageprovider to the search location.

More documentation can be found here (implementing your own and the default search locations):

https://github.com/OneGet/oneget/wiki/Provider-assembly-search-locations https://github.com/OneGet/oneget/wiki/ImplementingPackageProvider

Answer from Harald F. on Stack Overflow
🌐
PDQ
pdq.com › powershell › uninstall-package
Uninstall-Package - PowerShell Command | PDQ
Indicates that this cmdlet uninstalls all versions of the package. ... Prompts you for confirmation before running the cmdlet. ... Forces the command to run without asking for user confirmation. ... Forces Package Management to automatically install the package provider for the specified package.
Discussions

How do I remove NuGet package manager via PowerShell or in the GUI?
If you want to remove packages sources use: Unregister-PackageSource If you are wanting to remove a package provider, you are going to need to do a lookup and delete the files in the source: For Example: (Get-PackageProvider nuget).ProviderPath | Remove-Item You will need to restart PowerShell or your pc. But before you do this, REMEMBER you will not be able to register package source endpoints using that provider. Removing nuget could break PowerShellGet, which inturn will break module cmdlets. More on reddit.com
🌐 r/PowerShell
9
1
May 20, 2022
Uninstall-package not working...?

Maybe it only works for Windows Installer based applications (msi, msp, kb).
There is no way it can detect the silent installation switches for executables by itself...

More on reddit.com
🌐 r/PowerShell
11
12
October 13, 2017
Get-Package and Uninstall-Package
Hi, I’ve googled and googled but cannot find anything. Do either of these have trappable return/exit codes/messages? E.g. Uninstall-Package failed or succeeded? Thanks More on forums.powershell.org
🌐 forums.powershell.org
6
0
February 2, 2023
PowerShell PackageManagement - How to uninstall a package provider? - Stack Overflow
Troubleshooting i tried uninstalling nuget. NuGetProvider-2.8.5.208.dll to be specific. I have never worked with Power Shell before and am totally lost. I found this question that helped me find nu... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Microsoft Learn
learn.microsoft.com › en-us › powershell › module › packagemanagement › uninstall-package
Uninstall-Package (PackageManagement) - PowerShell | Microsoft Learn
Indicates that this cmdlet uninstalls all versions of the package. ... Prompts you for confirmation before running the cmdlet. ... Specifies a string of the path to the input object. ... Switch to exclude the version number in the folder path. ... Forces the command to run without asking for user confirmation. ... Forces PackageManagement to automatically install the package provider for the specified package.
🌐
TutorialsPoint
tutorialspoint.com › article › how-to-uninstall-software-using-package-management-in-powershell
How to uninstall software using Package management in PowerShell?
PS C:\Users\Administrator> ... are installed with msi, msu, Programs and PowerShellGet can be uninstalled with Uninstall-Package command....
🌐
Advanced Installer
advancedinstaller.com › software-uninstall-with-powershell-package-management.html
How to uninstall software using Package management in PowerShell
August 4, 2023 - Here's how to uninstall software ... installed with msi, msu, Programs or PowerShellGet can be uninstalled with the Uninstall-Package cmdlet....
🌐
secretGeek
til.secretgeek.net › powershell › remove_package_provider.html
remove package provider . Today I Learned (secretGeek)
Either nuget package provider switched ... the provider forced the use of specific location. These are the two different commands I used for installing it · Install-PackageProvider -Name NuGet -Force (installed 2.8.5.127) Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force (installed 2.8.5.201) I may have used a -ForceBootstrap parameter in there too, just for fun. http://stackoverflow.com/questions/32508133/powershell-packagemanagement-how-to-uninstall-a-packag...
🌐
Reddit
reddit.com › r/powershell › how do i remove nuget package manager via powershell or in the gui?
r/PowerShell on Reddit: How do I remove NuGet package manager via PowerShell or in the GUI?
May 20, 2022 - If you are wanting to remove a package provider, you are going to need to do a lookup and delete the files in the source: ... You will need to restart PowerShell or your pc.
🌐
Microsoft Learn
learn.microsoft.com › en-us › nuget › reference › ps-reference › ps-ref-uninstall-package
NuGet Uninstall-Package PowerShell Reference | Microsoft Learn
April 22, 2021 - Uninstall-Package supports the following common PowerShell parameters: Debug, Error Action, ErrorVariable, OutBuffer, OutVariable, PipelineVariable, Verbose, WarningAction, and WarningVariable.
Find elsewhere
🌐
Microsoft Learn
learn.microsoft.com › en-us › powershell › module › packagemanagement › unregister-packagesource
Unregister-PackageSource (PackageManagement) - PowerShell | Microsoft Learn
Indicates that Unregister-PackageSource forces PackageManagement to automatically uninstall the package provider for the specified package source.
🌐
Windows OS Hub
woshub.com › uninstall-apps-with-powershell-windows
Uninstalling Apps Using PowerShell or CMD on Windows 11 and 10 | Windows OS Hub
March 26, 2026 - You can display a list of providers on a computer as follows: ... Use a pipeline with the Uninstall-Package cmdlet to remove a program (note that I use the wildcard character * to avoid typing out the entire program name): Get-Package -Name "Notepad++*" | Uninstall-Package · You can remove the installed PowerShell module.
🌐
Reddit
reddit.com › r/powershell › uninstall-package not working...?
r/PowerShell on Reddit: Uninstall-package not working...?
October 13, 2017 -

Hey guys!

i've searched alot but could not find my answer... it is involving the new package manager function in Powershell 5.0. it's like in Linux where you have a software repository to download software from using shell directly.

More info: http://www.tomsitpro.com/articles/windows-10-powershell-package-manager,2-16.html

i'm running powershell as administrator and as you can see below the "uninstall-package" did not uninstall the software... Anyone knows the solution?

Thanks in forward!

--->

PS C:\WINDOWS\system32> get-package '7-Zip 17.00 beta (x64)'

Name Version Source ProviderName


7-Zip 17.00 beta (x64) 17.00 beta Programs

PS C:\WINDOWS\system32> get-package '7-Zip 17.00 beta (x64)' | uninstall-package -Force -verbose

PS C:\WINDOWS\system32> get-package '7-Zip 17.00 beta (x64)'

Name Version Source ProviderName


7-Zip 17.00 beta (x64) 17.00 beta Programs

🌐
PowerShell Forums
forums.powershell.org › powershell help
Get-Package and Uninstall-Package - PowerShell Help - PowerShell Forums
February 2, 2023 - Hi, I’ve googled and googled but cannot find anything. Do either of these have trappable return/exit codes/messages? E.g. Uninstall-Package failed or succeeded? Thanks
🌐
Stack Overflow
stackoverflow.com › questions › 71300284 › powershell-packagemanagement-how-to-uninstall-a-package-provider
PowerShell PackageManagement - How to uninstall a package provider? - Stack Overflow
Line:1 Character:44 + (Get-PackageProvider NuGet).ProviderPath | Remove-Item -Force + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (C:\Users\XXX ...GetProvider.dll:FileInfo) [Remove-Item], Unauthoriz edAccessException + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
🌐
GitHub
github.com › MicrosoftDocs › PowerShell-Docs-PSGet › blob › main › powershell-gallery › powershellget-2.x › PackageManagement › Uninstall-Package.md
PowerShell-Docs-PSGet/powershell-gallery/powershellget-2.x/PackageManagement/Uninstall-Package.md at main · MicrosoftDocs/PowerShell-Docs-PSGet
Dynamic parameters are specific to a package provider. The Get-Help cmdlet lists a cmdlet's parameter sets and includes the provider's parameter set. For example, Uninstall-Package has the PowerShellGet parameter set that includes -NoPathUpdate, AllowClobber, and SkipPublisherCheck.
Author   MicrosoftDocs
🌐
GitHub
github.com › MicrosoftDocs › PowerShell-Docs-PSGet › blob › main › powershell-gallery › powershellget-1.x › PackageManagement › Uninstall-Package.md
PowerShell-Docs-PSGet/powershell-gallery/powershellget-1.x/PackageManagement/Uninstall-Package.md at main · MicrosoftDocs/PowerShell-Docs-PSGet
Dynamic parameters are specific to a package provider. The Get-Help cmdlet lists a cmdlet's parameter sets and includes the provider's parameter set. For example, Uninstall-Package has the PowerShellGet parameter set that includes -NoPathUpdate, AllowClobber, and SkipPublisherCheck.
Author   MicrosoftDocs
🌐
PowerShell Forums
forums.powershell.org › powershell help
New to PS. Please help with Uninstall-Package - PowerShell Help - PowerShell Forums
December 15, 2020 - Hi Guys and Girls, I’m new both here and to PowerShell in general. I’ve been using it a fair bit for basic things recently and when you get the command right it just works. However… I have developed a need for using PowerShell commands to identify and remove a program from a fleet of ...
🌐
4sysops
4sysops.com › home › articles › installing and removing programs with the powershell package manager
Installing and removing programs with the PowerShell Package Manager – 4sysops
July 28, 2023 - Displaying installed programs with PowerShell and in the Control Panel · Like before, the -Name parameter allows you to restrict the output: Get-Package -Provider Programs -IncludeWindowsInstaller -Name "7-Zip*" In theory, you could pass the result of this command to Uninstall-Package to remove the software:
🌐
SysAdminSage
sysadminsage.com › home › blog › how to uninstall a program through powershell: a guide
How to Uninstall a Program Through PowerShell: A Guide - SysAdminSage
May 31, 2026 - For example, if you found a package named “OldSoftware123,” your command would look like this: Uninstall-Package -Name "OldSoftware123" ... The “Silent” Treatment: Some packages might still try to pop up a confirmation window. If you want to bypass the chatter, check if the package ...