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 Apps / Delete image from Shar...
Power Apps
Unanswered

Delete image from Sharepoint Library

(0) ShareShare
ReportReport
Posted on by 1,935 Moderator

Good afternoon.

Trying to make a button that would delete an image file in the sharepoint library.

First i have a variable set when gallery item is selected.

 

Set(varUrl, DataCardValue35.Image)

 

That displays the url for image file.

But when i try to run the flow below, then nothing happens. Image file still is in sharepoint.

 

'PowerApp->Deletefile'.Run(varUrl)

 

Any ideas why?

 

Gochix_0-1633094595286.png

 

Getting a failed flow :

Gochix_0-1633095311480.png

 



 

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,935 Moderator on at

    Okay, i did way around this.

    Now using: 

     

    RemoveIf(TestSP, Name = "3655008")

     

     

    This removes the file, but when i refresh/ reload app then image still is displayed in the app. However image is deleted from the document library.. And if i use direct link to the image them image being displayed anyway in the sharepoint library, ( even if it's not there ). Deleted from recycle bin but still shown.. Don't understand why...

     

    EDITED: now i know why file is still displayed, I did try to upload new image with same name and if i just click on it in sharepoint then right picture is displayed, but if i select option to view original then some old picture is displayed.. How this is possible? Does sharepoint save some previous data and having problems displaying it?

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard