Forum Discussion
Remove non-functional Shared Libraries in OneDrive when Sites have been deleted
IshtarIS I have the same problem. Has anyone answered your question?
No answers but I dug deep and realised they were artifacts from Sharepoint and Group activities in the Admin console. For groups I learned a lot from
https://docs.microsoft.com/en-au/microsoft-365/admin/create-groups/manage-groups?view=o365-worldwide
. I looked at <domain>.sharepoint.com/sites/<site name>/_layouts/15/groups.aspx for abnormal groups and used the PowerShell commands Get-AzureADMSDeletedGroup and Remove-AzureADMSDeletedDirectoryObject to clean up groups.
On the SharePoint side I found https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps
Get-SPODeletedSite and Remove-SPODeletedSite are good to clean up site detritus and Get-SPOSite -Template REDIRECTSITE#0 and Remove-SPOSite to clean up redirects
I hope this Helps