| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/sharepoint-online/remove-sposerviceprioritizationappregistrationsbypolicy |
| schema | 2.0.0 |
Removes all app registrations linked to a specific SharePoint Online Service Prioritization billing policy.
Remove-SPOServicePrioritizationAppRegistrationsByPolicy -PolicyId <Guid> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]The Remove-SPOServicePrioritizationAppRegistrationsByPolicy cmdlet removes all app registrations associated with the specified billing policy in a single server-side operation.
Before deletion, the cmdlet verifies that the billing policy exists and that at least one app registration is linked to it. If neither condition is met, the cmdlet exits silently.
By default, the cmdlet prompts for confirmation before deleting. Use -Force to suppress the confirmation prompt.
You must be a SharePoint Online administrator to run this cmdlet.
Remove-SPOServicePrioritizationAppRegistrationsByPolicy -PolicyId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"Prompts for confirmation, then removes all app registrations linked to the specified billing policy.
Remove-SPOServicePrioritizationAppRegistrationsByPolicy -PolicyId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ForceRemoves all app registrations linked to the specified billing policy without prompting for confirmation.
The unique identifier of the SPO Service Prioritization billing policy whose app registrations should be removed.
Type: Guid
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSuppresses the confirmation prompt. Without this switch, the cmdlet displays the number of app registrations that will be deleted and requires confirmation before proceeding.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
| Property | Type | Description |
|---|---|---|
| SuccessCount | Int32 | The number of app registrations successfully removed. |
| FailedAppIds | List<String> | App IDs that could not be confirmed as deleted, populated only when the server reports fewer deletions than expected. null when all registrations were deleted successfully. |
| BillingPolicyDeleted | Boolean | Always false for this cmdlet. Use Remove-SPOServicePrioritizationBillingPolicy to delete the billing policy. |
Get-SPOServicePrioritizationAppRegistrations
Add-SPOServicePrioritizationAppRegistration
Remove-SPOServicePrioritizationAppRegistration