Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/ /

mongocli config delete

On this page

  • Syntax
  • Arguments
  • Output
  • Example

The 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>
Argument
Type
Description
Required?
<profile-name>
string
Name of the profile to delete. Specify default` to delete the ``default profile.
yes

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 egProfile.

mongocli config delete egProfile
Are you sure you want to delete: egProfile Yes

The preceding command removes the profile from the configuration file.

Back

Retrieve a Profile