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 SharePoint File...
Power Automate
Unanswered

Delete SharePoint Files using HTTP Request

(1) ShareShare
ReportReport
Posted on by 22
Hi,
I need action to delete SharePoint files but failed using this action:
 
My folder name is Docs
 
Thanks.
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,504 Super User 2025 Season 2 on at
    Hi
     
    A couple things
     
    1. Please dont say something is failing and not explain how.. Man my brain is tired of trying to guess at stuff all the time
    2. Share more details.
     
    Please
     
    A) Verify that Display Name has the extension of the file, if not fix that
    B) You didn't include the RelativePath to the to location, you just put 'DOCS' that nots gonna be it, put the full relative path in there.
  • bscarlavai33 Profile Picture
    752 Super User 2025 Season 2 on at
    Does DisplayName contain the full file name? There might be a file name property to use instead?

    _api/web/GetFolderByServerRelativeUrl('Folder Name')/Files('{file_name}')

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

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard