Commands › SharePoint Online

Remove-SPOSiteCollectionAppCatalogById

SharePoint Online Microsoft.Online.SharePoint.PowerShell Remove-*

Removes the site collection app catalog by the id of the site collection.

Quick start script

# Remove-SPOSiteCollectionAppCatalogById — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOSiteCollectionAppCatalogById
$before | Format-List

# 3. Make the change
Remove-SPOSiteCollectionAppCatalogById -SiteId <Guid>

# 4. Verify and diff
$after = Get-SPOSiteCollectionAppCatalogById
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-SPOSiteCollectionAppCatalogById -SiteId <Guid> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-SiteId Guid yes Guid of the site collection.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.