dependent destroy for apps

I want to delete all app notifications if I delete the app