I wish to create a purging app to delete data according to a data retention policy. I came here for some ideas on this, and if anyone has ever worked on such an app, perhaps to provide some feedback at what they didn't think of originally.

the app would run every week and purge data from a db... email notifications and a suspend feature would be built in. I was also thinking of not actually deleting the db entries when it runs yet mark them as deletable and have the app delete them later once management approves the files to delete. of course this is me just trying to go the extra mile.

our database is DB2 and coding in Java. any libraries or plug-ins which might help the process is highly appreciated.

I'm sorry i don't have a specific question, yet I was hoping someone can guide me and throw some knowledge this way...

thanks so much for your time.