Bug 500308

Summary: close notifications hotkey and/or dbus command (close / clear / remove)
Product: [Plasma] plasmashell Reporter: kolAflash <kolAflash>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: decaf-fifth-upon, kde, nate, sh.yaron
Priority: LO    
Version First Reported In: 6.3.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kolAflash 2025-02-18 10:53:56 UTC
Please add a hotkey and / or a dbus command to clear (remove) all current notifications.

---

I don't seem to be the only one missing that. People have even come up with a Plasma-5 workaround.

# get the highest current notification id and close all notifications up to that id

# tested Plasma-5.27
for i in $(seq $(notify-send -p " " -t 1) -1 0); do qdbus org.kde.plasmashell /org/freedesktop/Notifications org.freedesktop.Notifications.CloseNotification $i; done

https://discuss.kde.org/t/how-does-clear-all-notifications-button-work/3286/3
https://www.reddit.com/r/kde/comments/8cpuxx/comment/ju7hc4v/
https://www.reddit.com/r/kde/comments/8cpuxx/comment/ju7hc4v/
https://forum.pine64.org/showthread.php?tid=11713

---

Workaround problems:

Unfortunately the workaround doesn't work for Dolphin copy-notifications.

Plasma-6:
"notify-send" misses "-p" option. So the workaround becomes even worse and only work up to a fixed id.

# tested Plasma-6.3
for i in {0..1000}; do qdbus org.kde.plasmashell /org/freedesktop/Notifications org.freedesktop.Notifications.CloseNotification $i; done
Comment 1 decaf-fifth-upon 2025-08-31 22:24:35 UTC
I second this. Would be great if such a button also existed in Plasma like it does in other DEs.

The bug tracker might not be the best place for this though as it is rather a suggestion / missing feature imo.

I think this "bug" is all about the screen clutter and missing convenience.
So for me, a possible alternative (inferior) feature would be to move all active notifications into the notification panel when the user opens that. This "solution" would still be missing the convenience of a single shortcut but it would get rid of the clutter and even have them still available in the panel.
Comment 2 Yaron Shahrabani 2025-09-01 05:30:04 UTC
I've been using macOS for work several years ago, the notification experience is so good, basically every notification can be dismissed pretty easily (three finger swipe IIRC) and then three finger swipe from the edge would bring up all the missed notifications, that way dismissing and rechecking the notifications was very easy.