@Override
    protected void doExecute() {
        if (!isNullOrBlank(environment) && ! Environment.from(environment).isManuallyDeployed())
            throw new IllegalArgumentException("Manual deletion is not permitted in " + environment);

        getLog().info(controller.deactivate(id, zoneOf(environment, region)));
    }
Deletes a Vespa application deployment, provided the deployment is in a manually deployed environment.

@author jonmv
vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeleteMojo.java