mongocli config delete¶
config delete command removes the specified
profile from the MongoDB CLI Configuration File. The command prompts
you to confirm the operation.
mongocli config delete|rm <profile-name>
Name of the profile to delete. Specify
None. You can verify by running the mongocli config describe command.
If the command prints an error, see Troubleshooting for recommended solutions.
The following example uses the
mongocli config delete
command to delete a profile named
mongocli config delete egProfile Are you sure you want to delete: egProfile Yes
The preceding command removes the profile from the configuration file.