Forum Discussion
Abelokobylka
Apr 17, 2025Copper Contributor
SharePoint.....365 Groups Clean Up - Unused Sites
Hello, my wonderful people!
I am attempting to clean up a list of existing SharePoint sites. There are over 300 sites currently, luckily this will no longer grow since allowing users to create sites on their own has been disabled. I did an export to see all the sites from the SharePoint admin center. I was excited to see the over 50 sites had no files associated with them and they were not being used for at least the last 4-5 years. Sadly, they are Microsoft 365 groups which I understand have associated mailboxes, calendars, OneNote, etc. associated with the site.
Any ideas on how to make sure I cover ALL the bases before deleting these sites/Microsoft 365 groups? Has anyone done this before? Ideas for process would be amazing!
Hi Abelokobylka Maybe you could use Microsoft Graph to retrieve details of all Microsoft 365 Groups. Like Calendar, Conversations, Drive, Notes and Planner.
2 Replies
Sort By
- michalkornetIron Contributor
Hi Abelokobylka Maybe you could use Microsoft Graph to retrieve details of all Microsoft 365 Groups. Like Calendar, Conversations, Drive, Notes and Planner.
- AbelokobylkaCopper Contributor
Wow this is super helpful, I have used the Graph API a few times so it shouldn't be too hard. I did I not know that I could get this info from there.
This is perfect so my plan so far:
- Check SharePoint activity and mailbox activity w/PowerShell script.
- Use Graph API for Calendar, Conversations, Drive, Notes and Planner. <--Thanks to you!
- Figure out if Graph API or PowerShell can get me data on Teams and Yammer, the last two things I will need to check.