Announcements
Hello,
I'm facing an issue in Power Automate when trying to delete a file. After using the "Delete file" action, I get an error stating that the file is locked.
Here's the process:
A workaround would be to keep the template in OneDrive, but the users prefer not to have it stored there.
Sorry for the late reply. I’ve already tried, even waiting up to 10 minutes and also using a loop to wait for an hour — but it still didn’t work.
Hi @AN-04030826-0,
I don't know if you found a solution for your problem, but I did find a way to force delete the file in the OneDrive folder. There is a thread titled "Unlocking OneDrive file through API" that describes the steps. You can check it out here: https://community.powerplatform.com/forums/thread/details/?threadid=c012cc48-22c4-4f1a-aec9-c03f6832ba20
The bonus is that copying from OneDrive to SharePoint can be done just with the Copy File connector from SharePoint. :)
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
David_MA 262 Super User 2026 Season 1
Haque 227
Expiscornovus 225 Most Valuable Professional