mongocli iam users delete
Remove the specified Ops Manager user.
Syntax
Command Syntax
mongocli iam users delete <userId> [options]
Arguments
Name | Type | Required | Description |
---|---|---|---|
userId | string | true | Unique 24-digit string that identifies the user in Ops Manager. |
Options
Name | Type | Required | Description |
---|---|---|---|
--force | false | Flag that indicates whether to skip the confirmation prompt before proceeding with the requested action. | |
-h, --help | false | help for delete |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
Output
If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.
User '<Name>' deleted
Examples
# Remove the Ops Manager user with the ID 5e44445ef10fab20b49c0f31: mongocli iam users delete 5e44445ef10fab20b49c0f31