The cancelEvent()
instance method will cancel an event that is scheduled to be delivered in the future.
cancelEvent()
instance method, passing in the ID of the event you want to cancel. This will prevent any jobs listening for that event from being triggered.