Your Moodle version

Admin tools: Reset MyMoodle

Maintained by Picture of Carlos Escobedo Carlos Escobedo
This tool allows reset all MyMoodle Users except main admin. Is for admins.

Administrators can reset all MyMoodles except main admin with one click with this tool. Located in Development Menu Node.

In the future, will be capable to select groups of users or one single users to reset MyMoodle.


Screenshot #0
Screenshot #1


Picture of Carlos Escobedo
Carlos Escobedo (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Mon, May 26, 2014, 5:21 AM
    Thanks for sharing this plugin with the Moodle community. Some formal issues were detected and reported by our automated plugin checker tool. Please review all the plugin checker results and fix the issues mentioned, if possible. These changes are typically pretty easy to make but if you have any questions just let us know. For now, I am going to mark this plugin as needing more work. Once you get these formal issues resolved, please use the link “Schedule this plugin for re-approval” so that the plugin code can be fully reviewed and approved by my human colleagues.
  • Picture of David Mudrák
    Mon, Jun 2, 2014, 4:19 AM
    Hi Carlos. Thanks for fixing the raised issues promptly. I am about to approve your plugin that provide simple yet useful functionality. There is one thing I would strongly recommend to improve in your future plugin's version though. Instead of doing things on your own, please use existing APIs unless you have a good reason not to. In this particular page, I believe your tool could simply call my_reset_page() in a loop for all users. It's much cleaner way how to clean and reset data there. Only when you were facing massive performance issues (which could happen at big sites with many users having MyMoodle customized), it would be good idea to have more effective bulk reset mechanisms.

    Said, that, you are cleared to land. Runway free, welcome to Moodle plugins!
  • Picture of Carlos Escobedo
    Mon, Jun 2, 2014, 10:24 PM
    I'm agree with your comments. As soon as possible I will upgrade the plugin to use the API. In fact, is inside new proposals.
  • Picture of Nadav Kavalerchik
    Wed, Jul 29, 2015, 9:19 PM
    Beautiful and useful block! It would be nice if we could choose a specific user and reset his/her My (Dashboard) blocks.
  • Picture of Roger Domínguez Argemí
    Thu, Aug 20, 2015, 7:47 PM
    Nice and useful plugin!
  • Picture of Peter R
    Wed, Sep 9, 2015, 2:04 PM
    Hi, Does this plugin work on 2.9+?
  • Me, with my new 'slow explosion' hair!
    Fri, Oct 2, 2015, 4:54 PM
    I've upgraded this (for 2.9, notionally, but will probably work on 2.8 too) and submitted a pull request.
  • Picture of Chris Booth
    Wed, Nov 18, 2015, 6:39 PM
    Hi there

    I am having a problem using this plugin. When I click the Continue button I get the following error message:

    Reset My Moodle

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 84 bytes) in /var/www/sandbox/lib/dml/pgsql_native_moodle_database.php on line 776

    We are on Moodle 2.9.

    Any ideas why this may be / has anyone come across this before?
    Thanks in advance
  • Picture of Carlos Escobedo
    Tue, Jan 26, 2016, 3:31 PM
    Hi Chris,

    I am sorry for being late in my reply.

    Typically, this error happens when PHP is out of memory. You could increase the size of memory in this viariable memory_limit in php.ini. So you can update the code of this plugin to set more memory to the execution and restore the original when the executions ends like ini_set('memory_limit', '-1'); or using standards in Moodle like raise_memory_limit(MEMORY_HUGE); to set more memory and raise_memory_limit(MEMORY_STANDARD); to restore the original state. If you still have the problem I can build a patch for you in my GitHub repository. However, in Moodle this feature is in the core ( and always you can upgrade your Moodle.

  • Ozan Varli
    Fri, Feb 12, 2016, 9:49 PM
    Works very well with 2.9, thanks a lot!
  • C'est moi :-)
    Wed, Feb 24, 2016, 7:21 PM
    Hi Carlos,
    This plugin is very useful. I've just used it in my 2.9.4+ Moodle (took nearly 2 hours !). But it seems (number shown at end) it run reset for all users, even deleted! Would be good to improve it.
  • Picture of Carlos Escobedo
    Fri, Feb 26, 2016, 3:29 PM
    Hi Séverin,

    thanks for your comments. I just push a new version with your proposal and other amazing features. The new version you can include or exclude guest users and deleted users. So you can enable or disabled log and download it. I hope was successfully for you.
  • C'est moi :-)
    Mon, Feb 29, 2016, 6:15 PM
    Thanks Carlos for these nice enhancements. I haven't already tested them.
    I think it would be really useful to be able to choose these option when launching the tool on admin/tool/resetmymoodle/index.php page!
    Because it's a tool that is rarely used, and i think one (even admin) will forgot that settings can be (previously) defined...

    PS : just for information : i had launched again the "reset my moodle" tool (some days ago), and it took "only" 15 minutes (less things to delete in tables), even with deleted users.
  • Picture of Geetha Venugopal
    Tue, May 17, 2016, 1:22 PM
    I already added the plugin. How to get the Progress Report Dashboard where the aggreation of grades appear just like in your screenshots. Another question: When I click on the student name as parent, it goes to the profile. Can I make it go to the overall Progress Report?
Please login to post comments