Button to dismiss all notifications

I frequently use persistent_notification.create from automations which lets me pin a notification in the frontend that requires manual clearing. The problem is when there are more than a few created it becomes tedious to have to manually clear each one.

Please could you provide a button to clear all notifications in the UI.

As an example, this is the google notification shade which provides this functionality:

could easily be done with a switch or input_boolean and an automation…
but I agree a built in function would be nice