Navigation

mongocli iam team delete

The mongocli iam team delete command deletes a team in the specified organization using the specified profile.

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.

Argument
Type
Description
Required?
<team-id>
string
Unique identifier of the team you want to delete.
yes
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

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

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
Give Feedback