For AI agents: a documentation index is available at https://www.mongodb.com/es/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

mongocli iam users delete

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