Uninstall-PnPSolution

Uninstalls a sandboxed solution from a site collection

Syntax

Uninstall-PnPSolution
         -PackageId <GuidPipeBind>
                              -PackageName <String>
                              [-MajorVersion <Int>]
                              [-MinorVersion <Int>]
                              [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Uninstall-PnPSolution -PackageId c2f5b025-7c42-4d3a-b579-41da3b8e7254 -SourceFilePath mypackage.wsp

Removes the package to the current site

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-MajorVersion

Optional major version of the solution, defaults to 1

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-MinorVersion

Optional minor version of the solution, defaults to 0

Type:Int
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PackageId

ID of the solution, from the solution manifest

Type:GuidPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PackageName

Filename of the WSP file to uninstall

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False