mongocli config 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 config delete
command removes the specified
profile from the MongoDB CLI Configuration File. The command prompts
you to confirm the operation.
Syntax
mongocli config delete|rm <profile-name>
Arguments
Argument | Type | Description | Required? |
---|---|---|---|
<profile-name> | string | Name of the profile to delete. Specify default` to delete
the ``default profile. | yes |
Output
None. You can verify by running the mongocli config describe command.
If the command prints an error, see Troubleshooting for recommended solutions.
Example
The following example uses the mongocli config delete
command to delete a profile named egProfile
.
mongocli config delete egProfile Are you sure you want to delete: egProfile Yes
The preceding command removes the profile from the configuration file.