I'm very happy and proud to integrate the moodle community.
I create this thread to announce that I'm working on a little functionality that permits to remove all the data of one or more users from the database and their documents from the moodle data directories. Preserving only their threads in forums, their contributions in wikis and glossaries, replacing them by an anonymous account.
My client, Grenoble Ecole de Management has this need, and we want to know if this kind of utility will interest some of you.
For the moment, the plugin in test is very basic, but seems to work correctly.
It offers the administrator the possibility to look for all users that have not been logged since a particular date, to select how many users the administrator wants and removes them definitively.
The principle of the plugin is to :
- create an anonymous user account
- delete all documents of the user to be deleted except from the forums, wikis and glossaries
- replace the references of the user by the reference of the anonymous account in the forums, wikis and glossaries
- look for all the database tables where a field corresponds to the id of the user and remove the records
But before I want to make it a little more clean before offer it to the community for testing purpose.
This thread is open to get some comments, ideas, criticisms...
thanks by advance for your suggestions
Eric