Reset MyMoodle

Administration tool ::: tool_resetmymoodle
Maintained by Carlos Escobedo
This tool allows reset all MyMoodle Users except main admin. Is for admins.
Latest release:
45 sites
13 fans
Current versions available: 2

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


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

Comments RSS

Rodyti komentarus
  • David Mudrák
    pr, 2 birž. 2014, 04:19
    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!
  • Carlos Escobedo
    pr, 2 birž. 2014, 22:24
    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.
  • Nadav Kavalerchik
    tr, 29 liep. 2015, 21:19
    Beautiful and useful block! It would be nice if we could choose a specific user and reset his/her My (Dashboard) blocks.
  • Roger Domínguez Argemí
    kt, 20 rugp. 2015, 19:47
    Nice and useful plugin!
  • Peter R
    tr, 9 rugs. 2015, 14:04
    Hi, Does this plugin work on 2.9+?
  • Me, with my new 'slow explosion' hair!
    pn, 2 spal. 2015, 16:54
    I've upgraded this (for 2.9, notionally, but will probably work on 2.8 too) and submitted a pull request.
  • Chris Booth
    tr, 18 lapkr. 2015, 18:39
    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
  • Carlos Escobedo
    an, 26 saus. 2016, 15:31
    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
    pn, 12 vas. 2016, 21:49
    Works very well with 2.9, thanks a lot!
  • C'est moi :-)
    tr, 24 vas. 2016, 19:21
    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.
  • Carlos Escobedo
    pn, 26 vas. 2016, 15:29
    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 :-)
    pr, 29 vas. 2016, 18:15
    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.
  • Geetha Venugopal
    an, 17 geg. 2016, 13:22
    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?
  • Evgeniy Schuetz
    pr, 21 lapkr. 2016, 16:34
    Hi, Carlos!
    Is this plugin compartible with Moodle 3.1 and higher versions?
  • Carlos Escobedo
    pr, 21 lapkr. 2016, 16:46
    Hi Evgeniy, it isn't compatible because since Moodle 3+ you can with Moodle the same like my plugin. If you can browse into Site Administration block and place into Apparence > Default Dashboard Page and then from here (http://MOODLE/my/indexsys.php you can Reset Dashboar for all users.
    Even so, I'm working in change the face of my plugin to provide a new feature what you can choose a group of users to reset their dashboard instead all of users.
    Do not hesitate if you have new features about reset dashboard that you will.
    Thanks for your comments.
1 2
Please login to post comments