Hi! We currently export a CSV file that contains calendar information manually, which we upload to a shared Microsoft Outlook calendar to keep our Project Coordinators up to date on happenings within the company. This is currently a manual process.
The issue is that before we upload the new dates, we always need to delete the old ones out. I have used Power Automate to get the import feature done automatically (which works great), however--deleting has not worked because Power Automate can not usually find the image of the category that I want deleted from the calendar. However, we also tried to use the "Click UI Element In Window" option, but that doesn't work because the calendar always has a different number of items in that category and so it won't recognize the UI Element (it changes hourly). See the image below:

We always want to delete all appointments in the "Confirmed" and "Tentative" category, but Microsoft views the UI as "Tentative: 202 item(s)" UI, not "Tentative" UI. When we import next though, we may only have 197 Tentative appointments, so Power Automate can't recognize it.
I have tried using image recognition and cutting out the end of the process, but that has worked very inconsistently (only 1 out of every 10 or so times does it find the actual image). Any ideas or suggestions? Thank you in advance!