cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thomas1992UK
Frequent Visitor

Cant delete a SharePoint File Dynamically

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

3 REPLIES 3
sudharsan1985
Solution Sage
Solution Sage

Hi @thomas1992UK 

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

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...
Gudny
New Member

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

Thanks, that really helped me.😀

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,365)