web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

When an item in a library is deleted -> delete list item

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

 

I am a bit stuck: I initially wanted to build a simple flow, when a file in a document library is deleted, delete list item (because the list is just a list register of all files in the library). But I noticed to "delete item" you need to be site collection admin and I neither won't get those rights nor does the site collection admin want to set up this flow for me. So...

 

Alternative idea was to rename the list item with the flow, so for example in each column instead of the file name etc. it would just be written "delete" everywhere. Then I could manually go in the list every few days and filter/manually delete these line item. But I somehow struggle to set up that flow, as easy as it seems. It always gives me the error "item could not be found" when I try to run a flow.

 

Can anyone point me in the right direction or have any alternative ideas for a workaround for the "delete item" issue?

 

Thank you!

Annika

I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: When an item in a library is deleted -> delete list item

    Hi @Annnika,

     

    Could you please share a screenshot of your Flow already created?

    You could create a Flow as below:

    1. When a file is deleted;

    2. Get items with filter query to find these items which Title equals to the filename with extension of deleted file.

    3. Update Title column in SharePoint list, add the "(Deleted)" at the end of file.

    Screenshot 2021-01-20 150001.jpg

     

    Screenshot 2021-01-20 150029.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard