When you set a timer, it returns an identifier, which you should store somewhere. When you want to cancel the timer, you pass a pointer to where you stored the identifier, and the function kills the timer and "clears" the identifier, ie:
// create the timer
int32_t my_timer = pulse_register_timer(1000, my_callback, NULL);
// cancel the timer
pulse_cancel_timer(&my_timer);