dependent destroy for apps

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