Deprecated since version 2.6: Use db.dropUser() instead of db.removeUser()
定義
db.removeUser(username)指定したユーザ名をデータベースから削除します。
The
db.removeUser()method has the following parameter:Parameterタイプ説明usernamestring
データベースのユーザー名。
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
重要
This command is not supported in MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン