Remove-SiteDesign
SharePoint Online: Removes a site design
#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[string]$Identity
)
Process {
try {
$cmdArgs = @{ ErrorAction = 'Stop'; Identity = $Identity }
Remove-SPOSiteDesign @cmdArgs | Out-Null
[PSCustomObject]@{ Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"; Status = "Success"; Message = "Site design '$Identity' removed" }
}
catch { throw }
}ID of the site design to remove