Clear all data in persistable when start app or user login?

Hi all. Currently, I am building 1 native app. I have some persistable entities to store. Now, I want to clear all that data every time the app is opened or every time the user logs in. How to do that? Thanks!
1 answers

Make a microflow as the landing page (home page) and perform the delete actions. See to it that this is the only time it is used. The other times you need to open that page should use the page directly. Use XPath to only delete that users items.