mongocli atlas datalake delete
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.
Syntax
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.
Options
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:
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 |
Behavior
You must respond affirmatively to a confirmation request before MongoDB CLI completes a request to delete a Data Lake.
Output
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
Example
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