Docs Menu

Docs HomeLaunch & Manage MongoDBMongoDB CLI

mongocli iam users delete

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options
  • Output
  • Examples

Remove the specified Ops Manager user.

Command Syntax
mongocli iam users delete <userId> [options]
Name
Type
Required
Description
userId
string
true
Unique 24-digit string that identifies the user in Ops Manager.
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
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.

If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.

User '<Name>' deleted
# Remove the Ops Manager user with the ID 5e44445ef10fab20b49c0f31:
mongocli iam users delete 5e44445ef10fab20b49c0f31
←  mongocli iam usersmongocli iam users describe →