Delete Messages

Administration tools ::: tool_deletemessage
Maintained by Esdras Caleb Oliveira Silva
Moodle never delete messages from message table. This plugin enables you to set a maximum time to messages stay in user box before auto delete them. It also enables the purge old messagens from database and erase messages of old conversations.
Latest release:
232 sites
92 downloads
14 fans
Current versions available: 1
Messages in Moodle are not deleted since the messaging overhaul and sometimes they made the system slow even when both users deleted them, this plugin creates a task that deletes these messages in the database. This plugin allows you to perma delete these messages. And also mark read messages or all messages to deletion after some time. In the same way, Moodle enables you to do notifications. To use it go to Administration > Messages > Auto Delete Messages and set the time when you want messages to be auto deleted. There are  also options to purge the deleted messages from database and conversations that do not have messages of database.

To install the plugin use the admin panel or put it in the tools folder in MOODLE_DIR_ROOT/admin/tool


Made by and for the UFRN - SEDIS

Screenshots

Screenshot #0

Contributors

Esdras Caleb Oliveira Silva (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Plugins bot
    Per, 22 Haz 2023, 4:10 AM
    Approval issue created: CONTRIB-9311
  • Juan Carlos Jimenez
    Çar, 1 Kas 2023, 9:20 PM
    Hello. I really liked your plugin.
    Fixes the problem of deleting messages that Moodle doesn't do.
    A question:
    How can I delete all messages?
    Could you pass me the query?
    Thanks
  • Esdras Caleb Oliveira Silva
    Per, 2 Kas 2023, 2:49 AM
    Its not easy because the moodle function only deletes conversations. YOu could set the date to delete messages to 1 day and delete them in one day run cron to delete. And set it again to what you want.

    I am working in a update to create a function that delete messagens. Maybe I put a message to delete all messagens of one users or something like that...
  • Esdras Caleb Oliveira Silva
    Per, 25 Oca 2024, 7:54 AM
    HI i upated it to delete messagens from database. I found a way. It was easy but I did not had time...
  • Dr. Nellie Deutsch
    Per, 25 Oca 2024, 6:34 PM
    Why is it Declared maturity level [MATURITY_RC]?
  • Esdras Caleb Oliveira Silva
    Pzt, 29 Oca 2024, 8:33 PM
    Its not anymore. The version is satable and can clear messages from your database
  • Dr. Nellie Deutsch
    Per, 14 Mar 2024, 1:35 AM
    I set it to one month, but would like to be able to set it to days. I have over 5000 messages.
  • Esdras Caleb Oliveira Silva
    Sal, 30 Nis 2024, 2:43 AM
    Dr Nellie I hope you problems are fixed. The plugin now can delete group messages and personal messages
  • Yazmin
    Per, 4 Tem 2024, 12:01 AM
    Hola Esdras, me gustaría probar el plugin, pero tengo unas dudas, se aplica a todos los usuarios o puede utilizarlo para un solo usuario?
  • Esdras Caleb Oliveira Silva
    Per, 4 Tem 2024, 12:19 AM
    El plugin funciona para todos los usuarios, agrega la posibilidad de establecer un tiempo máximo para los mensajes del sistema.

  • Dr. Nellie Deutsch
    Sal, 22 Eki 2024, 3:43 AM
    Hi, is it compatible with Moodle 4.5?
  • Esdras Caleb Oliveira Silva
    Pzt, 17 Şub 2025, 8:18 PM
    Sadelly Yes Nellie, I hoped the newer versions of Moodle solved the problem of massive messages, but the message collect code remains untouched. Please give a comment on my issue
    https://tracker.moodle.org/browse/MDL-78702
  • Dr. Nellie Deutsch
    Per, 24 Nis 2025, 3:33 PM
    Is it compatible with Moodle 5.0?
Please login to post comments