Clean the app delegate.