Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • Allan Cahill Profile Picture
    on at
    Delete file - OneDrive

    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

  • Jcook Profile Picture
    7,770 Most Valuable Professional on at
    Re: Delete file - OneDrive

    Hello @dreaves1 

     

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

     

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

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,658 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

Featured topics

Restore a deleted flow