code: def clear_extensions(self, group=None):
          
  
          if group is None:
              ComponentRegistry._registered_extensions = {}
              return
  
          if group in self._registered_extensions:
              self._registered_extensions[group] = []
docs: Clear all previously registered extensions.