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

mongocli atlas datalake delete

On this page

  • Syntax
  • Options
  • Behavior
  • Output
  • Example

The datalake delete command deletes one Atlas Data Lake associated with the specified Atlas project. You can also delete a Data Lake with the Data Lake API or with the Atlas UI by selecting Data Lake from the left-side navigation.

mongocli atlas datalake delete <datalake-name>
[ --force ]
[ --output|-o <output-format> ]
[ --profile|-P <profile-name> ]
[ --projectId <id-of-project> ]

Note

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

Option
Type
Description
Required?
<datalake-name>
string
Name of the Data Lake.
yes
--force
Bypasses the confirmation message.
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 Go template file

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

no
--profile, -P
string
Name of the profile where the public and private keys for the project are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.
no
--projectId
string

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

no

You must respond affirmatively to a confirmation request before MongoDB CLI completes a request to delete a Data Lake.

The command prints the following message to the terminal if the command succeeds. If the command returns errors, see Troubleshooting for recommended solutions.

Data Lake '<datalake-name>' deleted

The following example uses the mongocli atlas datalake delete command to delete a Data Lake named myDL in the specified project. It uses the default profile to access the project.

mongocli atlas datalake delete myDL --projectId 5e2211c17a3e5a48f5497de3

Back

Create a Data Lake