Would there be a way with a application that would allow me to run at the press of the button that will perform the following operations on the iphone4?

Clear Safari history, cache, email ids
Clear login ids to applications of choice like google voice, mobile me

Please advise.

Thank You,