Deleting old users

Deleting old users

by Conn Warwicker -
Number of replies: 2
Picture of Core developers Picture of Plugin developers

Hi,

With the new GDPR coming into play, is it still "enough" to delete users through moodle and have their user record flagged as "deleted". Or should we be manualyl actually deleting user records from the database now, do you think?


Thanks.

Average of ratings: -
In reply to Conn Warwicker

Re: Deleting old users

by Moodle Admin -

If you do not need the data delete with a cron job from also database

You can also anonymize user data if you want to use for statistical purpose.

In reply to Moodle Admin

Re: Deleting old users

by Zoran Jančić -
Picture of Particularly helpful Moodlers

OK, how exactly to delete users from the database? I'm desperately  trying to find a way to do that. Deleting user's record from the mdl_user DB table is not an option because it would break relations with other tables. 

Is there any easy way to anonymize old deleted users without having to do it manually in the database by executing a DB query?