I have some sensitive data that I load on the device in my application. And it can be reused between sessions / multiple uses of the app and be cleared when not in use / open / active.

So the app is not active / running. There is a notification showing that the sensitive information is still in memory. 

But I want to give the user an option of clearing this data after a set amount of time.

So my question is how do I run some code after a set number of minutes?