mongocli iam users delete
删除指定的Ops Manager用户。
语法
命令语法
mongocli iam users delete <userId> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
userId | 字符串 | 是 | 一个唯一的24位字符串,用于在Ops Manager中标识用户。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
--force | 否 | 标志,表示是否在执行请求的操作之前跳过确认提示。 | |
-h, --help | 否 | delete的帮助信息 |
继承的选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | 字符串 | 否 | 配置文件中要使用的配置文件名。有关MongoCLI配置文件中的配置文件信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
输出
如果命令执行成功,CLI将返回类似于以下示例的输出。括号中的值代表您的值。
User '<Name>' deleted
示例
# Remove the Ops Manager user with the ID 5e44445ef10fab20b49c0f31: mongocli iam users delete 5e44445ef10fab20b49c0f31