mongocli iam team delete
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoCLI.
The mongocli iam team delete
command deletes a team in the specified
organization using the specified profile.
Syntax
mongocli iam team delete <team-id> --orgId <organization-ID> [ --force ] [ --profile|-P <profile-name> ]
Note
Use -h
or --help
to view the command-line help for
this command.
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<team-id> | string | Unique identifier of the team you want to delete. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--orgId | string | Unique identifier of the organization that contains the team you
want to delete. | yes |
--force | Flag that indicates that the team can be deleted without
requiring confirmation. | no | |
--profile , -P | string | Name of the profile that contains the access information. If
omitted, uses the default profile. | no |
Output
The command prints following output to the terminal if the command succeeds. If the command returns errors, see Troubleshooting for recommended solutions.
Team '<team-id>' deleted
Example
The following command deletes a team with ID 5e44445ef10fab20b49c0f31
in an Atlas organization. It uses the default profile for accessing
Atlas.
mongocli iam team delete 5e44445ef10fab20b49c0f31 \ --orgId 5df27c15f10fab55fc6c1234 --force
The previous command prints the following to the terminal.
Team '5e44445ef10fab20b49c0f31' deleted