To remove metadata for key "example-key" for a virtual machine instance named "example-instance" in project "example-project", run:
gdcloud compute instances remove-metadata example-instance --project example-project --keys=key1,key2
To remove all metadata from an instance named "example-instance", run:
gdcloud compute instances remove-metadata example-instance --project example-project --all
OPTIONAL FLAGS
--all count If set, all metadata entries are removed.
For example, --all. At least one of the flags --all or --keys is required.
--keys stringArray List of comma-separated key entries that must be removed from the metadata of the virtual machine instance.
For example, --keys=key1, key2. At least one of the flags --all or --keys is required.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-12 UTC."],[[["The `gdcloud compute instances remove-metadata` command is used to remove metadata from a virtual machine instance."],["You can specify particular metadata keys to remove using the `--keys` flag, providing a comma-separated list."],["The `--all` flag allows you to remove all metadata entries from the specified instance at once."],["At least one of either `--all` or `--keys` flags are required to run this command."],["This tool is part of the broader `gdcloud` command-line interface, which also includes global flags like `--configuration`, `--format`, `--project`, and `--quiet`."]]],[]]