Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9ZZEXBcNUVvicsUSMerVX1
Power Automate - Building Flows
Unanswered

Can i Delete file from OneDrive and also remove it from recycle bin

Like (0) ShareShare
ReportReport
Posted on 21 Oct 2022 08:57:41 by 3,502

I have the following part of a larger flow:-

 

johnjohn123_0-1666342299696.png

 

where i need to convert a SharePoint word file into PDF, so i used the OneDrive appraoch, which require creating the file inside onedrive >> convert it to PDF >> Delete the oneDrive file. but the issue is that the "Delete file 3", will keep a copy of the file inside the one drive recycle bin, so is there a way to permanently remove the file from one drive?

Thanks

 

  • johnjohn123 Profile Picture
    3,502 on 21 Oct 2022 at 10:14:37
    Re: Can i Delete file from OneDrive and also remove it from recycle bin

    @CraigStewart this flow is run from power apps, so it will run based on the power apps users context, so the address will vary based on the user

     

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on 21 Oct 2022 at 10:02:19
    Re: Can i Delete file from OneDrive and also remove it from recycle bin

    The site address is added as a custom value, or a variable in the example on that page  - it's whatever the site address is of your one drive.
    Sign in to Sign in - Microsoft OneDrive (live.com) and copy the url from the browser.

  • johnjohn123 Profile Picture
    3,502 on 21 Oct 2022 at 09:29:33
    Re: Can i Delete file from OneDrive and also remove it from recycle bin

    @CraigStewart  the example uses Send Http request to SharePoint to remove the one drive file from recycle bin,, but what will be the site address for the action?

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on 21 Oct 2022 at 09:03:07
    Re: Can i Delete file from OneDrive and also remove it from recycle bin

    Hi

     

    Coincidentally this was asked earlier in the week and @Expiscornovus provided a solution here:

     https://powerusers.microsoft.com/t5/Building-Flows/Use-Power-Automate-to-permanently-delete-files-from-a-folder-or/m-p/1825071/highlight/true#M201308

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 125

#2
David_MA Profile Picture

David_MA 109 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard
Loading started