private void _removeUpdate(String password,boolean onlyLatest) throws PageException {
checkWriteAccess();
ConfigServerImpl cs = (ConfigServerImpl) config.getConfigServer(password);
try {
CFMLEngineFactory factory = cs.getCFMLEngine().getCFMLEngineFactory();
if(onlyLatest){
try{
factory.removeLatestUpdate(cs.getPassword());
}
catch(Throwable t) {
removeLatestUpdateOld(factory,cs.getPassword());
}
}
else factory.removeUpdate(cs.getPassword());
}
catch (Exception e) {
throw Caster.toPageException(e);