Forum Discussion

Abelokobylka's avatar
Abelokobylka
Copper Contributor
Apr 17, 2025
Solved

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!

2 Replies

    • Abelokobylka's avatar
      Abelokobylka
      Copper 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:

      1. Check SharePoint activity and mailbox activity w/PowerShell script.
      2. Use Graph API for Calendar, Conversations, Drive, Notes and Planner. <--Thanks to you!
      3. Figure out if Graph API or PowerShell can get me data on Teams and Yammer, the last two things I will need to check. 

Resources