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

Anonymous
Not applicable

Thanks, that really helped me.😀

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,136)