Skip to content
Floating Cloud

Floating Cloud

  • Contact US
  • Pre-installed Servers – AWS Marketplace
    • Postfix Email Server
    • HmailServer email Server on Windows with Roundcube Webmail
      • HmailServer email Server on Windows with Roundcube Webmail
    • Secured MongoDB With XFS for Superior performance – Access Instructions – Linux
      • Install Secured MongoDB NoSQL 3.4.2 on Windows – Access Instructions
      • MongoDB on Windows 2016
      • MongoDB 3.6 with XFS and Password Security Open for Connections – Linux
      • MongoDB 3.6 on Linux
      • Create MongoDB Database on Windows – NoSQL DB
      • Install MongoDB with Security on Windows Server 2016
      • MongoDB 3.4 Replica Set – Installation Instructions
      • MongoDB 3.6 on Windows Server 2016
      • Node.JS and MongoDb Server on Windows 2016 – MEAN Stack
      • MongoDB on Windows – Pre-installed
      • Secure MongoDB on Windows Server 2016
      • Secured Mongodb With XFS for Superior performance – About – Linux
    • Docker CE with docker-machine to create a multi-region Swarm
  • Blog
  • Floating Blog

How to remove a user in mongodb

Visits: 793

db.removeUser()

On this page

  • Definition

Deprecated since version 2.6: Use db.dropUser() instead of db.removeUser()

Definition

db.removeUser(username)
Removes the specified username from the database.

The db.removeUser() method has the following parameter:

Parameter Type Description
username string The database username.
Author Montgomery AuberPosted on April 23, 2019August 19, 2019

Post navigation

Previous Previous post: Change User name in MongoDB
Next Next post: Install Docker-Compose on CoreOS Container Linux
Easy To Install Cloud Servers using only Open Source
  • Complete Postfix Email Server with Webmail, Easy Install and Admin, HTTPS certificates - Add Tons of Users
  • Complete Postfix Email Server Graviton / ARM64! with Webmail, Easy Install and Admin, HTTPS certificates - Add Tons of Users
  • Complete Email Server on Windows Hmail with Webmail, Easy Install and Admin, HTTPS certificates - Add Tons of Users
  • Mongodb 3.6
  • MongoDB Swarm Multi Region
  • MongoDB 3.6 on XFS with Password Security Open for Connections - Linux
  • Contact US
  • Pre-installed Servers – AWS Marketplace
    • Postfix Email Server
    • HmailServer email Server on Windows with Roundcube Webmail
      • HmailServer email Server on Windows with Roundcube Webmail
    • Secured MongoDB With XFS for Superior performance – Access Instructions – Linux
      • Install Secured MongoDB NoSQL 3.4.2 on Windows – Access Instructions
      • MongoDB on Windows 2016
      • MongoDB 3.6 with XFS and Password Security Open for Connections – Linux
      • MongoDB 3.6 on Linux
      • Create MongoDB Database on Windows – NoSQL DB
      • Install MongoDB with Security on Windows Server 2016
      • MongoDB 3.4 Replica Set – Installation Instructions
      • MongoDB 3.6 on Windows Server 2016
      • Node.JS and MongoDb Server on Windows 2016 – MEAN Stack
      • MongoDB on Windows – Pre-installed
      • Secure MongoDB on Windows Server 2016
      • Secured Mongodb With XFS for Superior performance – About – Linux
    • Docker CE with docker-machine to create a multi-region Swarm
  • Blog
  • Floating Blog
Floating Cloud Proudly powered by WordPress