mongocli iam organizations delete
删除指定的组织。
有活跃项目的组织无法删除。
要使用此命令,您必须使用具有组织所有者角色的用户帐户或API密钥进行身份验证。
语法
命令语法
mongocli iam organizations delete <ID> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
标识符 | 字符串 | 是 | 一个唯一24位字符串,用于标识组织。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
--force | false | 标志,表示是否在执行请求的操作之前跳过确认提示。 | |
-h, --help | false | 删除的帮助信息 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | 字符串 | false | 配置文件中要使用的配置文件名。有关MongoCLI配置文件中的配置文件信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
输出
如果命令成功执行,CLI将返回类似以下示例的输出。括号中的值表示您的值。
Organization '<Name>' deleted
示例
# Remove the organization with the ID 5e2211c17a3e5a48f5497de3: mongocli iam organizations delete 5e2211c17a3e5a48f5497de3