Purging entities in Mendix database

0
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.
asked
1 answers
1

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

https://modelshare.mendix.com/models/d2484d71-46d9-4530-801c-93c2436bf067/delete-entire-database

answered