This page describes the datalab delete
command.
Usage
datalab delete [-h] [--delete-disk | --keep-disk] [--project PROJECT] [--quiet] [--verbosity {debug,info,warning,error,critical,none}] [--zone ZONE] NAME
datalab delete
deletes the given Datalab instance's Google Compute Engine VM.
By default, the persistent disk's auto-delete configuration determines whether or not that disk is also deleted.
If you wish to override that setting, you can pass in one of either the
--delete-disk
flag or the --keep-disk
flag.
For more information on disk auto-deletion, see here
Options
-h/--help
Show a help message and exit
--delete-disk
Whether or not to delete the instance's persistent disk regardless of the disks' auto-delete configuration.
--keep-disk
Whether or not to keep the instance's persistent disk regardless of the disks' auto-delete configuration.
--project PROJECT
The Google Cloud Platform project name to use for this invocation.
If omitted then the current project is assumed.
--quiet
Do not issue any interactive prompts
--verbosity {debug,info,warning,error,critical,none}
Override the default output verbosity for this command.
--zone ZONE
The zone containing the instance. If not specified, you may be prompted to select a zone.
To avoid prompting when this flag is omitted, you can set the compute/zone property:
$ gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
$ gcloud compute zones list
To unset the property, run:
$ gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable CLOUDSDK_COMPUTE_ZONE.