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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Force delete file with...
Power Automate
Unanswered

Force delete file with Sharepoint

(0) ShareShare
ReportReport
Posted on by 4
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
 
Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    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!

    ​​​​​​​
  • FH-20121531-0 Profile Picture
    4 on at
    Force delete file with Sharepoint
    Thanks for your answer, it works with the DELETE method and GetFileByServerRelativeUrl

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard