web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Workflow deleting item...
Power Automate
Unanswered

Workflow deleting items from One Drive RecycleBin

(1) ShareShare
ReportReport
Posted on by 14
Hello
 
My problem is that I have several workflows which delete files and as consequence I am lacking space on One Drive - need to empty Recycle Bin pretty often; else my workflows fail lacking space to write. I need a workflow to delete items in the One Drive Recycle Bin:
=> I do not see any connector to One Drive Recycle Bin; I do not use (and don't want to use) "Premium" connectors
=> Connectors like One Drive List files in folder do not allow mapping to the Recycle Bin; it seems like it is at the same hierarchy level as One Drive for Business / Root, but you can only see and pick Root, while you can not see or pick RecycleBin
=> I tried sending HTTP call to https://******-my.sharepoint.com, to _api/web/recyclebin, but body of the 200 response is this an empty JSON - although quite certainly I have MB's of files in the RecycleBin
 
I see that @JSINFO coped with same/very similar problem in 2023: https://community.powerplatform.com/forums/thread/details/?threadid=887ee60a-9524-4451-a937-152da1dcc50b - this remained unanswered
 
Any smart ideas? Could someone please walk me through step by step? Thank you!
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Workflow deleting items from One Drive RecycleBin
    You can consider a different approach by using retention policies. See Automatically retain or delete content by using retention policies | Microsoft Learn. It would require your system admin to configure it for the account and it should work.
  • David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    Workflow deleting items from One Drive RecycleBin
    You may want to discuss with your IT department about increasing the storage of your OneDrive. It can be increased up to 25TB: Change a specific user's OneDrive storage space - SharePoint in Microsoft 365 | Microsoft Learn. The issue doesn't seem like you are hording files, it is just that the files are not being emptied from the recycle bin fast enough to keep your OneDrive below its limit.
     
    Maybe you could create a SharePoint site and create some of the files in the site's document library for some of your flows and delete them like you do in OneDrive once they're not needed. This would give you more capacity while you wait for the files to automatically purge, or you manually empty the recycle bin.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,965 Super User 2025 Season 2 on at
    Workflow deleting items from One Drive RecycleBin
     
    I wanted to share this so you can compare what you are doing.
     
     
    You can also have your admins create you a PowerShell script, which can then be called by Power Automate
     
     
    You can also use HTTP connector with Graph API
     
    If this helps, please Mark as such and maybe a like :-)
     
    Cheers

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard