Sergey, there is already such an action
https://prnt.sc/ud7bh1It can be configured on a per-employee basis, but this action will clear all notifications for the specified users.
You can also set up an action at the stage of the business process, which you will set at the desired stage, the desired BP and when you switch to the status, the action will delete all process notifications for the specified users
https://prnt.sc/ud7dd2I think this should help.