Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ScottBrown
Helper II
Helper II

Use SharePoint Recycle Bin as a Data Source

In lieu of the Teams File Deletion problem on or around 03/15/21 after the Teams outage issue, we had a lot of files get deleted by a rogue process with the outage.  We were able to recover them via the Recycle Bin.

 

I want to create a watch dog report of the file deletions and by whom so we can review and triage if necessary.

  • I have tried a SP folder & List connection and it is not there. 
  • I have tried an OData connection and cannot see it there.

Any suggestions are welcome!

 
3 REPLIES 3
Icey
Community Support
Community Support

Hi @ScottBrown ,

 

How about creating a flow to monitor if anything has been deleted?

delete.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

I don't think you can do this directly in Power Query. Even using SharePoint.Contents() I cannot find the recycle bin. I see at least two options:

  1. Every week I export the Audit Logs for the tenant to a CSV file. It has file deletion data by person. I have a report that shows all deletions across all SharePoint sites in the tenant. Then someone can view that and see if anything looks odd or suspicious.
  2. You can use PowerShell to export recycle bin contents for a specific site - Get-PnPRecycleBinItem (PnP.Powershell) | Microsoft Docs - that output could be dropped into a folder and a report run over that.


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Additionally @ScottBrown you can set up alerts in Office 365 for unusual levels of file deletions. See this page for configuration and licensing requirements. Alert policies in the security and compliance centers - Microsoft 365 Compliance | Microsoft Docs



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors