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 Apps / Delete image from Data...
Power Apps
Answered

Delete image from Dataverse using Power Apps

(0) ShareShare
ReportReport
Posted on by 51

Hello,

 

Any tips on how to remove an image from a Dataverse record while leaving the remaining record intact? Currently, my users enter data and a photo into a Dataverse record through a Powerapp. I'd like to give them the option to delete the image from the app if possible. 

 

I've tried a simple patch function to set the image to a blank: Patch(Source, Record, {Image: blank()}). But no luck.

 

I've dreamed up a few "hacks" (untested), but seems there should be a better way...

 

Here's the hacks:

 

- When the user presses the delete button, the Dataverse record is saved locally without the image. Then the Dataverse record is deleted, and the local copy is saved back to the Dataverse, without the picture. 

 

- When delete is pressed, the image in the record is replaced with an image file consisting of a blank white square.

 

Any thoughts/advice would be appreciated. 

 

Thanks!

 

Jason 

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @07GT ,

     

    I replaced the original image with a blank image.

    vyujincuimsft_3-1663739275312.png

    ThisItem.ImageColumnName.Value
    Patch(TestDataSources,ThisItem,{Image:UploadedImage2.Image})
    
    Patch(TestDataSources,ThisItem,{Image:blankimage})

    vyujincuimsft_1-1663739195566.png

    Result Screenshot:

    vyujincuimsft_2-1663739210349.png

     

     

    Best Regards,

    Charlie Choi

  • Verified answer
    07GT Profile Picture
    51 on at

    Thanks Charlie, seems like that's the best option at this point. I'll go with that.

     

    Jason

     

  • IPC_ahaas Profile Picture
    1,401 Moderator on at

    I just came across this recently. You can Patch "Blank()" for an image column and it will delete the image.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard