Purging entities in Mendix database

Hi, In my application architecture, we are not storing anything in mendix entities. We are relying on rest api. But the rest api responses are stored in persistent entities and its not getting removed even though I have association that deletes it. What is the best way to clean up those entities ? Is there an easy way to purge it other than iterating it thru microflow and delete it ? Please advise. Regards, Vinod.
1 answers

Hi Vinod,

There is a java action in the community commons module called “deleteall”. If you give it a module name and entity then it will delete the entire table in batches. Using this with the combination of the module reflction module, you can build a microflow that clears your entire database. 

Edit: Here is an example