Navigation

mongocli atlas security ldap delete

The security ldap delete command removes the current userToDNMapping from the LDAP configuration for an Atlas project. You can also remove the current userToDNMapping through the API.

mongocli atlas security ldap delete|rm
[ --force ]
[ --profile|-P <profile-name> ]
[ --projectId <project-ID> ]
Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
--force
Flag that indicates that the whitelist entry can be deleted without requiring confirmation.
no
--output, -o
string

Command output format. Valid values are:

  • json for output in JSON format
  • go-template for custom output using the Go template
  • go-template-file for custom output specified using the Go template file

If omitted, the command returns output in the default format.

no
--profile, -P
string
Name of the profile to use for accessing the Atlas project. If omitted, uses the default profile.
no
--projectId
string

Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable.

no

The command prints a confirmation message similar to the following to the terminal if it succeeds. If the command prints an error, see Troubleshooting for recommended solutions.

LDAP configuration userToDNMapping deleted from project'<project-ID>'

The following examples use the mongocli atlas security ldap delete command to delete the current userToDNMapping from the LDAP configuration for the project specified using the default profile.

mongocli atlas security ldap delete

The previous command prints the following to the terminal:

LDAP configuration userToDNMapping deleted from project'5e2211c17a3e5a48f5497de3'
Give Feedback