I have a flow that takes events from a shared calendar that are assigned a specific flag and adds them to a SharePoint list. It works most of the time but every now and then there is a duplicate entry in the SharePoint list, I use the calendar id in the flow to check if it needs to be updated or created but for some reason the flow misses a few and I end up with duplicates, it's not every item just random items.
Is there an additional step I can put in to check or even a way to go through and delete the duplicates as part of the flow? I've got screenshots of the flow below