If you don't want to show a core, or contrib message to the end user, you now have to iterate $_SESSION['messages'] and search for the (translated, token replaced) string to unset it.
If a message has a unique key, you can easily override a message, or unset it.
function backdrop_set_message($message = NULL, $type = 'status', $repeat = TRUE, $message_key = FALSE) {
A simple unset($_SESSION['messages']['status']['unique_key']) could remove the message, and $_SESSION['messages']['status']['unique_key'] = t('Something else'); changes it.
Recent comments
Trying to push it to upstream 🤞 https://github.com/drush-ops/drush/pull/6621
Using Drush 8 with php 8
Wow, thank you!
Using Drush 8 with php 8
Hi folks, I went ahead and ported all drush 8.x stuff to PHP 8.3 and completely ripped out the legacy Symfony 2 internals. You can check out the exact details of what was done in the PR...
Using Drush 8 with php 8