Clearing Notifications/Threads?

I’ve found a few threads relating to clearing the badge number using the ‘clear_badge’ message, just wondering if there’s something similar for clearing notifications/messages?

My use case is I have periodic notifications for when my roller door is left open, these start to pile up, and it’d be great if I could automatically send a ‘clear_thread’ or similar message once the roller door is closed, as they’re no longer relevant at that point.