Skip to main content

Notifications

Community site session details

Community site session details

Session Id : kxWd5O2FfXryB9GXvnc+7w
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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started
Loading complete