Showing results for 
Search instead for 
Did you mean: 
New Member

When a file is Created, Modified, or Deleted SharePoint Flow

I just started using power automate a couple weeks ago so I'm definitely a rookie at this. Anyways, so far my flow looks like the photo attached below. This allows any creation/modification that takes place in Folder A to occur in Folder B, except when you delete the file in Folder A. I would like to add on to my flow to include if a file is deleted in Folder A then the connected file is deleted in Folder B. Any suggestions how I could make the deleting part of this work? Or you can tell me I'm crazy for thinking this is possible! Thanks!



Super User
Super User

Hi @Russel1 


You need another flow which triggers against the deletion. It won't be possible to add the logic in your existing flow.






Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
Super User
Super User


Which mechanism do you currently use to match files in Folder A and B? I mean, does 'when a file is deleted' return enough file related info, like the ID, or the filename, so can identify the connected file in Folder B?


As explained in the following thread, "...using the "When an Item is Delete" step is VERY limited. The output from that trigger gives you no useful information on the deleted item. And while it DOES provide you the item's ID, using a follow-up 'Get Item' using that ID returns nothing..."


So, if you connect filed in Folder A and B by means of their ID, fine. If not, we got a problem. Assumen the problem exists, may I suggest to implement a second Flow, based on the recurrence trigger, executed daily, goes all trough files in Folder B, tries to find their mirror file in Folder A, if not found, delete file in Folder B.
Hope this helps

Each time you click on any of our inspiring answers 'Thumb up' icon... ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!

Escribo sobre Power Automate en:

Proud to be a Flownaut!

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,547)