code: def remove(cls, pid):
          
          with cls._lock:
              cls._ensure_pool_exists(pid)
              cls._pools[pid].close()
              del cls._pools[pid]
docs: Remove a pool, closing all connections
  
          :param str pid: The pool ID