@DELETE
	@Path("/deleteEvent")
	@Consumes(MediaType.APPLICATION_JSON)
	public Response deleteEvent(String jsonObject) {
		Gson gson = new GsonBuilder().setDateFormat(WS_DATE_PATTERN).create();

		Event event = null;
		try {
			event = gson.fromJson(jsonObject, Event.class);
		} catch (JsonSyntaxException e1) {
			try {
				gson = new GsonBuilder().setDateFormat(JS_DATE_FORMAT).create();
				event = gson.fromJson(jsonObject, Event.class);
			} catch (JsonSyntaxException e) {
				e.printStackTrace();
				return makeCORS(Response.status(400));
			}
		}

		EventMongoDAO mc = null;
		try {
			mc = EventMongoDAO.getInstance();

		} catch (UnknownHostException e) {
			e.printStackTrace();
			return makeCORS(Response.status(503));
		}

		if (event.getId() != null) {
			if(mc.exists(event.getId())){
				mc.delete(event);
				return makeCORS(Response.ok());
			}
			else {
				return makeCORS(Response.status(204));
			}
		} else {
			return makeCORS(Response.status(400));
		}
	}