clean the app delegate