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 Attachments in ...
Power Apps
Unanswered

Delete Attachments in Power Apps

(0) ShareShare
ReportReport
Posted on by 1,265

How can a user delete attachments in Power Apps?  When I select attachments to delete, they appear to delete but are present when form is reopened.

RJF61_2-1685729299884.png

 

 

 

Categories:
  • mmollet Profile Picture
    3,187 on at

    I believe you can do this with a gallery using an icon and the following code: 

    Remove(AttachmentControlName.Attachments, ThisItem)

     

    When I test this using the attachment control it lets me delete attachments. Not sure why you arent able to. I have an attachment card in a form used to store 1 attachment that is uses as the profile picture for my users. When I click the x to remove the image it shows it as 'queued to remove' and is greyed out. My submit button uses this code: SubmitForm(Profile_EditUserInfoForm); and it removes it correctly.

     

    That being said if you dont want to use that or cant get it to work then as far as I know there is no other way to delete attachments in Power Apps. You would more than likely need to use Power Automate. There is a delete attachment function for sharepoint that takes the site address, list name, items id, and the name of the file/attachment. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard