How to delete users from de DB

Not a very good suggestion but for me it worked.

  1. Remove users from any default channels if available.
  2. Stop the application.
  3. Login to mongo console with the authenticated user and run the below command:

use rocketchat
switched to db rocketchat
db.users.remove({“ldap”: true});

hope it helps.

2 Likes