Unpublish-PnPApp

Unpublishes/retracts an available add-in from the app catalog

Syntax

Unpublish-PnPApp
         -Identity <AppMetadataPipeBind>
                         [-Scope <AppCatalogScope>]
                         [-Connection <SPOnlineConnection>]

Examples

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

Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe

This will retract, but not remove, the specified app from the tenant app catalog

------------------EXAMPLE 2------------------

Unpublish-PnPApp -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Site

This will retract, but not remove, the specified app from the site collection app catalog

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.

Only applicable to: SharePoint Online, SharePoint Server 2019

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

Specifies the Id of the Addin Instance

Only applicable to: SharePoint Online, SharePoint Server 2019

Type:AppMetadataPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Scope

Defines which app catalog to use. Defaults to Tenant

Only applicable to: SharePoint Online, SharePoint Server 2019

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