To delete an instance named "example-instance" in project "example-project", run:
gdcloud compute instances delete example-instance --project example-project
FLAG FACOLTATIVI
--delete-disks DISK_TYPE The types of disks to delete with instance deletion regardless of the
disks' auto-delete configuration on the VM instance. When this flag is
provided, the auto-delete bits on the attached disks are modified
accordingly before the instance deletion request is issued.
DISK_TYPE must be one of:
all: All disks
boot: Only the disks where first partition is reserved for the root filesystem
data: Only non-boot disks
The default is to leave the auto-delete bits on the attached disks unchanged.
--keep-disks DISK_TYPE The types of disks to NOT delete with instance deletion regardless of
the disks' auto-delete configuration on the VM instance. When this flag
is provided, the auto-delete bits on the attached disks are modified
accordingly before the instance deletion request is issued.
DISK_TYPE must be one of:
all: All disks
boot: Only the disks where first partition is reserved for the root filesystem
data: Only non-boot disks
The default is to leave the auto-delete bits on the attached disks unchanged.
GDCLOUD WIDE FLAGS
Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-05 UTC."],[],[],null,["# gdcloud compute instances delete\n\nNAME\n----\n\ngdcloud compute instances delete - Delete virtual machine instances.\n\nSYNOPSIS\n--------\n\n gdcloud compute instances delete INSTANCE_NAME [flags]\n\n### EXAMPLES\n\n To delete an instance named \"example-instance\" in project \"example-project\", run:\n\n gdcloud compute instances delete example-instance --project example-project\n\n### OPTIONAL FLAGS\n\n --delete-disks DISK_TYPE The types of disks to delete with instance deletion regardless of the\n disks' auto-delete configuration on the VM instance. When this flag is\n provided, the auto-delete bits on the attached disks are modified\n accordingly before the instance deletion request is issued.\n \n DISK_TYPE must be one of:\n all: All disks\n boot: Only the disks where first partition is reserved for the root filesystem\n data: Only non-boot disks\n The default is to leave the auto-delete bits on the attached disks unchanged.\n --keep-disks DISK_TYPE The types of disks to NOT delete with instance deletion regardless of\n the disks' auto-delete configuration on the VM instance. When this flag\n is provided, the auto-delete bits on the attached disks are modified\n accordingly before the instance deletion request is issued.\n \n DISK_TYPE must be one of:\n all: All disks\n boot: Only the disks where first partition is reserved for the root filesystem\n data: Only non-boot disks\n The default is to leave the auto-delete bits on the attached disks unchanged.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]