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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cant delete a SharePoi...
Power Automate
Unanswered

Cant delete a SharePoint File Dynamically

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

I've been stuck on this all day and can't seem to get past it.

 

I have a file I need to select dynamically, from a SharePoint Library and delete it (sounds easy).

 

I have also tried it so the file path (file path is saved in a sharepoint list) is coped in to the file identifier, no luck.

 

My flow is below, it works until I pass the delete output the file identifier. Any other solutions would also be appreciated.

 

2020-03-30_20-56-33.png

2020-03-30_20-58-33.png

2020-03-30_20-59-06.png

2020-03-30_20-59-40.png2020-03-30_21-00-10.png

 

I've also tried this solution to change the file identifier to a uri with no look:

https://powerusers.microsoft.com/t5/Building-Flows/SharePoint-Delete-file/m-p/316594#M33853

Categories:
I have the same question (0)
  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @thomas1992UK 

    Have you tried using the SharePoint REST API to delete the file?

  • Gudny Profile Picture
    23 on at

    This worked for me:
    You need to replace the backslash / in the URL with %2F when you type in the file identifier or when using dynamic content to as the file identifier.
    See explanation here

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks, that really helped me.😀

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard