cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leyburn19
Level 10

Delete attachments

I created nightmare for myself, I inadvertadly created a flow that added an attachment to a SharePoint List.  The problem was I created another flow that when list was modified also added an attachment from a one drive file I have.

 

This effectively created a perpetualy loop.  Before I realised what was going on I have ended up with about 100 items with anything from 10 to 3000 attachments ( a few had 5000+).  Yikes!

 

Going and removing all the attachments is not really practical.  Deleting each entry is an option,  but so far the time to delete keeps timing out as the delete process must delete the attachments first.  It will take me ages.

 

Is there a way to do a looping flow that deletes all attachments with exception of the first?  I can at least set and forget.

1 REPLY 1
Super User
Super User

Re: Delete attachments

Hi @leyburn19

 

Please refer to the screenshot below: deleele.png

Configure this flow according to the list name and the site, run it, just sit back and watch all the attachments getting deleted. Please enure that you turn off any flow that has a trigger of "When a Sharepoint Item is Created or Modified" so that we don't mess up anything. 

 

Hope this helps. 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 228 members 4,764 guests
Please welcome our newest community members: