Marcelo M. A. Júnior
Lead maintainer
This plugin provides a simple way for users to clear their visible message history in Moodle up to a selected date. Instead of deleting records from the database, it marks messages as deleted for the current user, ensuring the messaging data remains intact while allowing users to clean their message interface.
The block includes a date selector that allows the user to define a cutoff date. All messages sent by the user or associated with their messaging actions up to the end of the selected day are processed. The plugin checks for existing deletion actions to avoid duplicates and only inserts the necessary records into Moodle’s core message_user_actions table.