code: def unregister_all(self, name):
          
          try:
              templatehook = self._registry[name]
          except KeyError:
              return
  
          templatehook.unregister_all()
docs: Remove all callbacks
  
          :param str name: Hook name