Remove a user account.
Section: Users and roles
Drop a user
javascript
javascript
db.dropUser("appuser")Explanation
Useful during environment cleanup or credential revocation.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Users and roles