/** * @param vdbName the vdb name * @param vdbVersion the vdb version * @throws Exception if undeploying vdb fails */ public void undeployVdb(String vdbName, int vdbVersion) throws Exception { this.admin.deleteVDB(appendVdbExtension(vdbName), vdbVersion); ITeiidVdb vdb = getVdb(vdbName); refreshVDBs(); if (vdb == null) { } else { this.eventManager.notifyListeners( ExecutionConfigurationEvent.createUnDeployVDBEvent(vdb.getName())); } }