Unfortunately, in macOS 14.2.1, there isn't a built-in feature to clear all notifications at once. However, there are a couple of methods you can try to manage and clear these notifications more efficiently.
One option is to try using the Notification Center itself to dismiss the notifications. To do this, click on the Notification Center icon in the top-right corner of the menu bar (it looks like three lines stacked vertically). This will open the Notification Center sidebar. From there, you can click on the "X" button next to each notification to dismiss them one by one. While this may take some time if you have a large number of notifications, it can help declutter your Notification Center.
Another option is to temporarily disable notifications for the specific application that's generating these notifications. You can do this by going to System Preferences > Notifications. From there, select the application that's generating the "Disk not Ejected Properly" notifications and adjust its notification settings to either disable notifications entirely or change them to a less intrusive style.
Additionally, it's worth checking if there are any available updates for your macOS version. Sometimes, software updates include bug fixes and improvements that may address issues like excessive notifications. You can check for updates by going to the Apple menu > System Preferences > Software Update.
If none of these methods resolve the issue, it's possible that there may be a bug or underlying issue causing the notifications to persist. In that case, you may want to consider reaching out to Official Apple Support for further assistance.