Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Message module provides a user interface for configuration at /admin/config/system/message. There are three main areas of configuration. First, you can set an expiry date on messages so that messages older than a certain number of days are purged from the database. Second, there is a utility for copying text fields from one language to another (see second screenshot below). This makes it easier to create multilingual message text fields. Third, you can use the DrupalQueue for batch processing (and deleting) messages that do not have a reference to another entity.