Create button/action that clears all notifications for a user.

My users are asking for a way to clear all their notifications at once. They commonly visit the site through email notifications, and as such they don’t use the site notification system a lot. Though they do sometimes.

So I have been looking for a solution. I found this in bp-core-notifications.php

function bp_core_delete_notifications_from_user

Can this be used to create a button that will clear notifications of all types at the same time for the logged in user?