Remove-PnPGraphSubscription
SYNOPSIS
Required Permissions
- Microsoft Graph API : depends on the resource the subscription was created on. Deleting a subscription requires read permissions on that resource, i.e.
Mail.Readfor a subscription on messages orSites.ReadWrite.Allfor one on a SharePoint list. Note that the permission is not always the same as the one needed to create the subscription, so use the table in Delete subscription rather than the one for creating.
Removes an existing Microsoft Graph subscription.
SYNTAX
Remove-PnPGraphSubscription -Identity <GraphSubscriptionPipeBind>
DESCRIPTION
Allows to remove an existing Microsoft Graph subscription.
EXAMPLES
EXAMPLE 1
Remove-PnPGraphSubscription -Identity bc204397-1128-4911-9d70-1d8bceee39da
Removes the Microsoft Graph subscription with the id 'bc204397-1128-4911-9d70-1d8bceee39da'
PARAMETERS
-Identity
The unique id or an instance of a Microsoft Graph Subscription
Type: GraphSubscriptionPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False