code: def clear(self):
          
  
          while True:
              try:
                  session = self._sessions.get(block=False)
              except queue.Empty:
                  break
              else:
                  session.delete()
docs: Delete all sessions in the pool.