$ gcloud compute snapshots delete snapshot-test
The following snapshots will be deleted:
- [snapshot-test]
Do you want to continue (Y/n)?
これだと自動化ができないので、この確認を無効にする方法を調べてみます。
まずはヘルプを確認。
gcloud help
---
--quiet, -q
Disable all interactive prompts when running gcloud commands. If input
is required, defaults will be used, or an error will be raised.
Overrides the default core/disable_prompts property value for this
command invocation. This is equivalent to setting the environment
variable CLOUDSDK_CORE_DISABLE_PROMPTS to 1.
---