Função desinstalar

Guys, is there a way to do some function so that when you press the button or finish an application, the app uninstalls?