Most people have now moved to SharePoint Online, either from scratch or by migrating content from previous versions of SharePoint. In SharePoint Online, a lot of legacy features have been deprecated and replaced by more modern counterparts. Unfortunately, chances are you have ported a whole lot of useless things as part of your migration.
[TODO: Screenshot of Useless stuff]
Before removing seemingly useless or old stuff, you should always make sure that site owners are OK with the deletion and that the data is actually not useful. In most cases however, the libraries detailed below have been added to your site by default and contain only demo and/or defautl data.
The process to remove legacy items is always the same regardless of the library/list you're trying to remove:
Either manually via:
Site Settings | Site Features | Feature XYZ | Deactivate
Or programmatically using:
# Connect and get contextConnect-PnPOnline -Url https://contoso.sharepoint.com# Get Feature Object$Feature = Get-PnPFeature -Scope Web -Identity $FeatureId #Feature IDs below# Get the Feature statusIf($Feature.DefinitionId -ne $null){# De-activate the FeatureDisable-PnPFeature -Scope Web -Identity $FeatureId -Force}Else{Write-host -f Yellow "Feature is not active!"}
# Connect and get contextConnect-PnPOnline -Url https://contoso.sharepoint.com$ctx = Get-PnPContext# Get list object$list = $ctx.Web.Lists.GetByTitle("Library_To_delete")# Force delete (send to recycle bin)$list.AllowDeletion = $True$list.Update()$ctx.ExecuteQuery()$list.Recycle() | Out-Null$ctx.ExecuteQuery()
Microfeed has been replaced in SharePoint by Yammer webparts and is no longer supported.
Associated Site feature to disable: "Site Feed" GUID: 15a572c6-e545-4d32-897a-bab6f5846e18
Annoucements are now replaced by the news webparts [TODO: Link to news webpart doc]
Associated Site feature to disable: "Announcement Tiles" GUID: 00bfea71-d1ce-42de-9c63-a44004ce0104
SharePoint Worklow are deprecated and replaced by Power Automate [TODO:link to rule to PowerAutomate]
Associated Site feature to disable: "Workflow Task" GUID: 57311b7a-9afd-4ff0-866e-9393ad6647b1
Drop-Off Library is not deprecated in SharePoint Online explicitely, however it is considered best practice to user Power Automate to achieve the same results with much greater flexibility and maintainability.
Associated Site feature to disable: "Content Organizer" GUID: 7ad5272a-2694-4349-953e-ea5ef290e97c