How to enable again the back button after disabling it?

I’m disabling the back button of the Android mobile phone with this code:

  @HostListener('document:ionBackButton', ['$event'])
  private async overrideHardwareBackAction($event: any) {
    console.log('@@@@ overrideHardwareBackAction @@@@', $event);
    $event.detail.register(100, async () => {
    await void(0); // Do nothing

It works. But I need to enable it in other pages of the app.
How can I unregister this event?

Thank you very much