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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delete file - OneDrive
Power Automate
Unanswered

Delete file - OneDrive

(0) ShareShare
ReportReport
Posted on by 27

Hi All,

 

I've created a flow that moves a file from my OneDrive to a SharePoint Document Library. In the flow, I have it deleting the file after it has been moved. For some reason, it wouldn't delete the file. When I run the flow I get an error message that states "The resource you are attempting to access is locked". What may I be doing wrong?Delete File Error.PNG

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @dreaves1 

     

    This is from the file still being in use by Flow.

     

    Try adding a delay action right before you delete the file.

  • AC-16100139-0 Profile Picture
    on at

    Hi @dreaves1

     

    The delay should get you around this issue as @Jcook points out.  The following discusses delaying a Flow:

    https://docs.microsoft.com/en-us/power-automate/run-scheduled-tasks

     

    Thanks for letting us know if this helps resolve the issue for you.  

     

    Cheers,

    Allan

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard