Forum Discussion
IshtarIS
Nov 09, 2020Copper Contributor
Remove non-functional Shared Libraries in OneDrive when Sites have been deleted
Hey Community We have some libraries that were shared quite some time back and appear in users OneDrive Shared library lists. The sites that hosted these libraries have been deleted however the...
KathrynLaskey
Feb 10, 2021Copper Contributor
IshtarIS I have the same problem. Has anyone answered your question?
- IshtarISFeb 10, 2021Copper Contributor
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