Removes the assembly from the GAC. Can only be called from an elevated prompt.
Remove-GacAssembly [-AssemblyName] <AssemblyName[]> [[-InstallReference] <InstallReference>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
-AssemblyName <AssemblyName[]>
Specifies the assembly name. Must be fully qualified. See Test-AssemblyNameFullyQualified.
-InstallReference <InstallReference>
Specifies the InstallReference used to add the assembly to the GAC
-PassThru [<SwitchParameter>]
The AssemblyName removed is used as the output
-WhatIf [<SwitchParameter>]
-Confirm [<SwitchParameter>]
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable.
C:\PS>Get-GacAssembly -Name SomeAssembly | Remove-GacAssembly
This example removes all assemblies with the name SomeAssembly from the GAC.