Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Force delete file with Sharepoint

Like (0) ShareShare
ReportReport
Posted on 20 Dec 2024 16:01:42 by
Hello,
 
I've tried to set up a simple flow.
Starting listing the content of a folder in the SharePoint site, delete the file based on its ID.
When no one is on the file, no problem, it's working.
When someone has opened it, I got the error message "File is locked by the user".
 
I've tried to add a "Send HTTP Request to SharePoint" with POST method Recycle() or lockedByUser.
This step is passed successfully but the deletion is still not possible.
 
Do you have any idea on which way I need to investigate ?
Thanks in advance
 
  • Nived_Nambiar Profile Picture
    Nived_Nambiar 16,785 on 20 Dec 2024 at 16:48:47
    Force delete file with Sharepoint
     
    Did you tried this operation as mentioned in blog to force delete a file ?
     
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

    ​​​​​​​

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,154

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,270

Leaderboard