对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

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

字符串

数据库用户名。

此方法可用于以下环境中托管的部署:

重要

This command is not supported in MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

给本页内容打分

在此页面上