Remove a hook by ID
To remove the hook that this event is for, call it with the $hookId argument as null or blank.
// Remove this hook event, preventing it from executing again $event->removeHook(null);
$hookEvent = $event->removeHook($hookId);
API reference based on ProcessWire core version 3.0.155