@RequestMapping(value="/{id}",method=RequestMethod.DELETE) @ResponseBody public RestWrapper delete(@PathVariable("id") String configGroup,Principal principal){
  RestWrapper restWrapper=null;
  try {
    generalConfigDAO.deleteByConfigGroup(configGroup);
    restWrapper=new RestWrapper(null,RestWrapper.OK);
    LOGGER.info("Record with configGroup:" + configGroup + " deleted from generalConfig by User:"+ principal.getName());
  }
 catch (  MetadataException e) {
    LOGGER.error(e);
    restWrapper=new RestWrapper(e.getMessage(),RestWrapper.ERROR);
  }
catch (  SecurityException e) {
    LOGGER.error(e);
    restWrapper=new RestWrapper(e.getMessage(),RestWrapper.ERROR);
  }
  return restWrapper;
}

@ RequestMapping ( value = "/{id}" , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( "id" ) String configGroup , Principal principal ) { RestWrapper restWrapper = null ; try { generalConfigDAO . deleteByConfigGroup ( configGroup ) ; restWrapper = new RestWrapper ( null , RestWrapper . OK ) ; LOGGER . info ( "Record with configGroup:" + configGroup + " deleted from generalConfig by User:" + principal . getName ( ) ) ; } catch ( MetadataException e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } catch ( SecurityException e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
this method deletes the records from properties table corresponding to the configgroup passed corresponding to processid passed .
