@ RequestMapping ( value = "/api/profile" , method = RequestMethod . DELETE ) public @ ResponseBody HashMap < String , Object > deleteProfile ( Model model , int id ) throws Exception { profileService . remove ( id ) ; return Utils . getJQGridJSON ( profileService . findAllProfiles ( ) , "profiles" ) ; }
Delete a profile