Steps
- Open Settings > Notifications > Dismiss Notifications and choose Dismiss if logged.
- Tap Exclusion list.
- Tick your messaging apps (use the app list to find them).
- Go back. Everything is dismissed except the apps you ticked.
Alternative
If you only want to clear a few noisy apps, choose Dismiss only selected apps and add just those apps to the Inclusion list.