Skip to main content

Notifications

Power Automate - General Discussion
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

  • Re: Cant delete a SharePoint File Dynamically

    Thanks, that really helped me.😀

  • Gudny Profile Picture
    Gudny 23 on at
    Re: Cant delete a SharePoint File Dynamically

    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

  • sudharsan1985 Profile Picture
    sudharsan1985 1,325 on at
    Re: Cant delete a SharePoint File Dynamically

    Hi @thomas1992UK 

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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard