I’m part of the MSF OCA team, and we’re in the process of implementing an Android Capture App to collect and analyze data in emergency situations. We’re looking for a way to automatically remove locally stored data on the mobile devices after a defined period or interval.
Has anyone worked on something similar or have any suggestions on how to set up automatic deletion of data stored on the device?
We’re particularly interested in best practices for managing data retention in field settings, ensuring sensitive data is safely cleared while maintaining app performance.
Looking forward to hearing your ideas and solutions!
unfortunately there is not a built-in solution for the automatic deletion of data stored on the Android device. It is possible to set a limit on the number of downloaded entities (TEIs or events) on each synchronization by using the Android Settings Web app (docs), but I think this is not what you are looking for.
There is a feature request to set a limit on the actual number of entities stored on the device, which might be closer to your requirement. We are not sure when it will be implemented, but we could take into account the need of deletion after a defined interval.
Maybe other people in the community handle this in a different way and can share their solutions.