Remove-OrgAssetsLibrary
SharePoint Online: Removes an org assets library
#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[string]$LibraryUrl
)
Process {
try {
Remove-SPOOrgAssetsLibrary -LibraryUrl $LibraryUrl -ErrorAction Stop
[PSCustomObject]@{ Timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"; Status = "Success"; Message = "Org assets library '$LibraryUrl' removed" }
}
catch { throw }
}URL of the library to remove