@RequestMapping(value="/{id}/{k}",method=RequestMethod.DELETE) @ResponseBody public RestWrapper delete(@PathVariable("id") Integer processTemplateId,@PathVariable("k") String key,Principal principal){
  RestWrapper restWrapper=null;
  try {
    PropertiesTemplate propertiesTemplate=new PropertiesTemplate();
    propertiesTemplate.setProcessTemplateId(processTemplateId);
    propertiesTemplate.setKey(key);
    propertiesTemplateDAO.deletePropertyTemplate(processTemplateId,key);
    restWrapper=new RestWrapper(propertiesTemplate,RestWrapper.OK);
    LOGGER.info("Record with ID:" + processTemplateId + ","+ key+ " deleted from PropertiesTemplate by User:"+ principal.getName());
  }
 catch (  Exception e) {
    LOGGER.error(e);
    restWrapper=new RestWrapper(e.getMessage(),RestWrapper.ERROR);
  }
  return restWrapper;
}

@ RequestMapping ( value = "/{id}/{k}" , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( "id" ) Integer processTemplateId , @ PathVariable ( "k" ) String key , Principal principal ) { RestWrapper restWrapper = null ; try { PropertiesTemplate propertiesTemplate = new PropertiesTemplate ( ) ; propertiesTemplate . setProcessTemplateId ( processTemplateId ) ; propertiesTemplate . setKey ( key ) ; propertiesTemplateDAO . deletePropertyTemplate ( processTemplateId , key ) ; restWrapper = new RestWrapper ( propertiesTemplate , RestWrapper . OK ) ; LOGGER . info ( "Record with ID:" + processTemplateId + "," + key + " deleted from PropertiesTemplate by User:" + principal . getName ( ) ) ; } catch ( Exception e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
this method calls proc deleteproperty and deletes an entry corresponding to particular processid and key passed .
