How to empty the queue of pending notifications?

I have an application that went completely crazy and sent (it seems like) hundreds of notifications to the notification daemon. Now I've been getting notification bubbles for the last few minutes and it is getting annoying.

How can I make them stop without logging off or rebooting?


I have a .desktop file that I use to kill the notifications.

[Desktop Entry]
Name=Notify Kill
Comment=Kill those pesky notifications!
Exec=killall notify-osd
Icon=utilities-terminal
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;

Toss that as notify-kill.desktop in ~/.local/share/applications, wait a minute and it will pop up in your Unity dash.

To use, just open the dash and search for kill or notify, and it will clear your notifications!