1 Answers
The sentence "The resource … was not found" said it all: gcloud
command could not find your instance in that specific zone and project.
You might want to check:
Which zone and project your instance is currently located at?
Which zone is set as the default for
gcloud
on the computer where you execute it?
It could be the case that your instance was created in a different zone than the one set for gcloud
. You might want to specify the zone in your command, e.g. gcloud compute instances delete <instance-name> --zone=ZONE-NAME
.
Thanks @Tuan LE – this resolves the error.