code: def clear( self ):
          
          self.setCurrentLayer(None)
          
          self._layers = []
          self._cache.clear()
          
          super(XNodeScene, self).clear()
docs: Clears the current scene of all the items and layers.