diff options
Diffstat (limited to 'client/go/internal/cli/cmd/destroy.go')
-rw-r--r-- | client/go/internal/cli/cmd/destroy.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/client/go/internal/cli/cmd/destroy.go b/client/go/internal/cli/cmd/destroy.go index 4df81179318..ca69f21a9b4 100644 --- a/client/go/internal/cli/cmd/destroy.go +++ b/client/go/internal/cli/cmd/destroy.go @@ -22,9 +22,13 @@ When run interactively, the command will prompt for confirmation before removing the application. When run non-interactively, the command will refuse to remove the application unless the --force option is given. -This command cannot be used to remove production deployments in Vespa Cloud. See -https://cloud.vespa.ai/en/deleting-applications for how to remove production -deployments. +This command can only be used to remove non-production deployments. See +https://cloud.vespa.ai/en/deleting-applications for how to remove +production deployments. This command can only be used for deployments to +Vespa Cloud, for other systems destroy an application by cleaning up +containers in use by the application, see e.g +https://github.com/vespa-engine/sample-apps/tree/master/examples/operations/multinode-HA#clean-up-after-testing + `, Example: `$ vespa destroy $ vespa destroy -a mytenant.myapp.myinstance @@ -37,7 +41,9 @@ $ vespa destroy --force`, return err } description := target.Deployment().String() - if target.IsCloud() { + if !target.IsCloud() { + return errHint(fmt.Errorf("cannot remove deployment, only supported for Vespa Cloud")) + } else { env := target.Deployment().Zone.Environment if env != "dev" && env != "perf" { return errHint(fmt.Errorf("cannot remove production %s", description), "See https://cloud.vespa.ai/en/deleting-applications") |