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


Take a look at the SharePoint When a file is deleted trigger.  I suspect it will meet your needs.

Let me know if you need an example.



If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Solution Sage
Solution Sage

Hi @Russel1 

There should be 2 flows, created and modified in one and deleted should be an other flow. There is a separate trigger called 'When a file is deleted'.

FileDeleted Trigger.png

Once the file is deleted the above trigger is fired, try to use the action 'Get Files(properties only)' based on the filename from 'Folder A', once received the properties, use the 'File ID' to delete the same file in 'Folder B' by using the action 'Delete File' action.

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...
Frequent Visitor

I realize the thread is a year old but did anyone find a solution? Like the OP, I need a flow to automatically delete from Folder B when manually deleted from Folder A. Created or modified flow is working perfectly but I can't figure out the delete. I've tried other suggestions such as get file metadata and http request to access the Recycle Bin but nothing has worked. Thank you!


The solutions provided above should work.  Use the When a file is deleted trigger.


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Hi Scott,

Thanks for the prompt reply. Here's two of the flows I've tried that are failing:

Using Delete and get metadata from the recycle bin:


It fails getting the metadata:


And if I try it with get properties:


It fails to find the file:


Any suggestions?

Frequent Visitor

SOVLED! I was adding more complexity than necessary. All I need is 'When a file is deleted" and "Delete file". No need to look for metadata or file properties. The Flow is working now. Here's a screenshot:


Note in "Delete File", you need to change any "/" in the file identifier path to "%2F" (without the quotes) as the Flow needs JSON format. 


Thanks for the help!

New Member

Hi, I currently tried to implement that deletion trigger as well. But I get an error message that only Site Collection Admins could use this trigger. Problem is that I am Site Collection Admin. But the message is still occuring. Did somebody face this issue as well?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,053)