code: @RequestMapping(value = "/delete", method = RequestMethod.POST)
  	public @ResponseBody
  	void delete(
  			@RequestParam(value = "username", required = true) String username,
  			HttpServletResponse response) {
  		logger.debug("Received request to delete account");
  
  		ResponseAccount responseAccount = accountService
  				.getAccountByUsername(username);
  		if (responseAccount.getAccount() == null) {
  			try {
  				response.sendError(500, "No such user exists: " + username);
  			} catch (IOException e) {
  				e.printStackTrace();
  				return;
  			}
  			return;
  		}
  		accountService.delete(responseAccount.getAccount());
  
  	}
docs: Handles request for deleting account