code: @DELETE
  	@Produces(MediaType.APPLICATION_JSON)
  	@Path("/{dashboardId}")
  	@Description("Deletes the dashboard having the given ID.")
  	public Response deleteDashboard(@Context HttpServletRequest req,
  			@PathParam("dashboardId") BigInteger dashboardId) {
  		if (dashboardId == null || dashboardId.compareTo(BigInteger.ZERO) < 1) {
  			throw new WebApplicationException("Dashboard Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
  		}
  
  		Dashboard dashboard = dService.findDashboardByPrimaryKey(dashboardId);
  
  		if (dashboard != null) {
  			validateResourceAuthorization(req, dashboard.getOwner(), getRemoteUser(req));
  			for(Chart c:_chartService.getChartsByOwnerForEntity(getRemoteUser(req),dashboard.getId()))
  			{
  				_chartService.deleteChart(c);
  			}
  			dService.deleteDashboard(dashboard);
  			return Response.status(Status.OK).build();
  		}
  		throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
  	}
docs: Deletes the dashboard having the given ID.
  
  @param   req          The HTTP request.
  @param   dashboardId  The dashboard ID to delete.
  
  @return  An empty body if the delete was successful.
  
  @throws  WebApplicationException  If an error occurs.