AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

db.removeUser()(mongoshメソッド)

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

db.removeUser(username)

指定したユーザ名をデータベースから削除します。

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

Parameter
タイプ
説明

username

string

データベースのユーザー名。

このメソッドは、次の環境でホストされている配置で使用できます。

重要

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 のバージョン

このページを評価

項目一覧