Showing results for 
Search instead for 
Did you mean: 
New Member

Delete all calendar event from a day

I'm trying to build a "Report being sick-flow" where users can press the mobile button that triggers a post about being sick in a Teams channel and remove all calendar events from the users calendar. 
Struggling with getting events for the days that the button is pressed, anyone have a clue?

Community Support
Community Support

Hi @JacobLindgren,


Do you want to delete all the activities that started on the day the button was clicked?

You could use Get events to get the start time of all the events, then use utcNow() function to get the date the button clicked on the day. Then delete all the events that the user started that day.

Use formatDateTime() to convert the two times obtained above, leaving only the date part to determine whether it is equal. If it is equal, delete the corresponding event.

I have made a test on my side and the flow works well.

Image reference:


Condition-- Formula reference:


is equal to



In addition, if you want to delete all the activities of the day, not the activities that started the day, you could change the formula to the following in the Condition-advanced mode:

@or(equals(formatDateTime(items('Apply_to_each')['Start'], 'dd-MM-yyyy'), formatDateTime(utcNow(), 'dd-MM-yyyy')),equals(formatDateTime(items('Apply_to_each')['End'], 'dd-MM-yyyy'), formatDateTime(utcNow(), 'dd-MM-yyyy')))



Take a try and feel let me know if you have any question.


Best Regards,


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

Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (28,076)