mongocli iam project team delete
The mongocli iam project team delete
command removes a team from
the specified project using the specified profile. The team still
exists in the organization in which it was created after being deleted
from a project.
You must have the Project Owner
role to run this
command.
Syntax
mongocli iam project|s team|s delete|rm <team-ID> [ --projectID <project-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 from the specified project. You can retrieve a list of team IDs for your project with the iam project team list command. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--projectId | string | Unique identifier of the project for that contains the team you
want to delete. If omitted, uses the project ID in
your profile or environment variable. | no |
--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 the following fields in the specified format to the terminal if the command succeeds. If the command prints an error, see Troubleshooting for recommended solutions.
Team '<team-ID>' deleted
Example
The following command deletes a team with ID
5e44445ef10fab20b49c0f31
in an Atlas project. It uses the default profile for
accessing Atlas.
mongocli iam project team delete 5e44445ef10fab20b49c0f31 --projectId 5dd6faab74979f10f39ffb78 --force
The previous command prints the following to the terminal.
Team '5e44445ef10fab20b49c0f31' deleted