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

Delete attachments from document library

(1) ShareShare
ReportReport
Posted on by 603

I have a powerapps form with SharePoint as the backend. I am using attachments control in Newform which stores the document in document library via power automate.

 

Below is the code for NewForm submit button

ForAll(
DataCardValue10_5.Attachments As file,
'UploadApprovaltoDocLib'.Run(
{
contentBytes: file.Value,
name: file.Name
},
DataCardValue3_5.Text,DataCardValue15_1.Text
)
);

 

If user resubmits the same request via resubmit form and then removes one of the attachment, the same attachment should get deleted from the document library as well. If user deletes Sample.pdf from the resubmit form, it should delete the same from the doc lib as shown in below screenshot. May i know how to achieve this?

 

Iantaylor2050_0-1699723178016.png

 

 

Categories:

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard