Remove non-functional Shared Libraries in OneDrive when Sites have been deleted

Copper Contributor

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 entries remain.   When selected they produce a very un-useful error (see below).

 

Does anyone have a way to remove non-functional shared library entries from the OneDrive Shared Library lists?

 

Thanks in advance.

IshtarIS_0-1604994671529.png

 

2 Replies

@IshtarIS I have the same problem. Has anyone answered your question?

@KathrynLaskey 

 

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 Get started with the SharePoint Online Management Shell | Microsoft Docs

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