code: @DELETE
  	@Produces(MediaType.APPLICATION_JSON)
  	@Path("/{alertId}/triggers/{triggerId}")
  	@Description("Deletes a trigger having the given ID and removes any associations with the alert or notifications.")
  	public Response deleteTriggersById(@Context HttpServletRequest req,
  			@PathParam("alertId") BigInteger alertId,
  			@PathParam("triggerId") BigInteger triggerId) {
  		if (alertId == null || alertId.compareTo(BigInteger.ZERO) < 1) {
  			throw new WebApplicationException("Alert Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
  		}
  		if (triggerId == null || triggerId.compareTo(BigInteger.ZERO) < 1) {
  			throw new WebApplicationException("Trigger Id cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
  		}
  
  		Alert alert = alertService.findAlertByPrimaryKey(alertId);
  
  		if (alert == null) {
  			throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
  		}
  		validateResourceAuthorization(req, alert.getOwner(), getRemoteUser(req));
  
  		List<Trigger> listTrigger = new ArrayList<Trigger>(alert.getTriggers());
  		Iterator<Trigger> itTrigger = listTrigger.iterator();
  
  		while (itTrigger.hasNext()) {
  			Trigger trigger = itTrigger.next();
  
  			if (triggerId.equals(trigger.getId())) {
  				itTrigger.remove();
  				alert.setTriggers(listTrigger);
  				alertService.updateAlert(alert);
  				return Response.status(Status.OK).build();
  			}
  		}
  		throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
  	}
docs: Deletes a trigger from alert.
  
  @param   req        The HttpServlet request object. Cannot be null.
  @param   alertId    The alert Id. Cannot be null.
  @param   triggerId  The trigger Id. Cannot be null.
  
  @return  Updated alert object.
  
  @throws  WebApplicationException  The exception with 404 status will be thrown if an alert or trigger do not exist.