Hi,
I have made a flow that pulls email attachements into sharepoint then moves data from the created files into a master file.
However, when the data is extracted I would like to delete these attachements, so that the sharepoint folder does not get over populated with files.
I am new to using flows so it would be much appreaciated if someone could show me a way to get rid af these files once they have served their purpose 😊
Hi @Lasse4
You can use "Delete file" action to delete the file in SharePoint folder. This action requires the file identifier as input:
File identifier can be obtained from "Get file properties" action which accepts the Id of the SharePoint file as input:
Using the combination of those actions you will get the identifier from dynamic content window as shown below & able to delete the file:
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks
stampcoin
87
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1