Delete user account

How to delete a user account and let him re-register again? There are some problems with registration.

Thanks!

From /edx/app/edxapp/edx-platform directory I did this, and worked:

sudo -su edxapp -s /bin/bash
cd
source edxapp_env
/edx/bin/python.edxapp /edx/bin/manage.edxapp lms manage_user --remove username usermail@example.com  --settings=production

To log out from edxapp user

exit

You can get your users list from the mysql ( edxapp.auth_user ) table this way:

mysql -u root -p
select username, email from edxapp.auth_user limit 100;

To logout of MySQL:

exit

I took the MySQL instructions from here

Thanks @kike.ramirez
but I think it is outdated now,

this worked for me:
/edx/bin/manage.edxapp lms manage_user --remove mySpecialUsername007 user@email.com --settings=production

1 Like