Showing results for 
Search instead for 
Did you mean: 
Post Partisan
Post Partisan

Delete files from SP doc library


i have an app that uploads attachments to SP  library (Documents)

In my app, i create a file, name and a RecordID .

On add attachment of a data card i run the first  Flow that creates the files (i build the url in that flow (initialize & set variable))

On remove file from the app's attachment control, i want to Run another flow that deletes the files based on their link.

I added a hyperlink column in the library.

How can i do that?

Community Support
Community Support

Hi @marial16,


What I'm thinking you could do is after you create the file with that specific URL then capture the URL in a variable inside the app.

Then pass that variable to a flow with a Delete File action card to delete it from SP.


Thank you,

Ovidiu Bordea

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (2,913)