EmailConnector - How do I / can I delete sent emails and scheduled events from my app?

0
Hello dear Mendix Community!   I have an application that has been running in the cloud a couple of years now and the memory usage is constantly increasing every month.   It was a long while ago I worked in Studio Pro so do anyone know what I need to do to be able to delete these items that are getting piled up in my Scheduled Events log and my sent emails log ? I know I need a delete button but when it comes to the microflows, what is the easiest way to make these two delete buttons work?    Thank you.      
asked
1 answers
0

Add a microlfow that etrieves the records from the database with a custom range for example 500 and create a loop like below, checking first if the retrieved list is not empty and then delete the retrieved list. When the lsit is empty there are no more records to delete and the microflow finishes.

image.png

Hope this helps you implement this.

answered