src/AbstractTransport.php
public function withoutParam($paramName = null)
    {
        $object = clone $this;
        if (is_null($paramName)) {
            unset($object->configs[$this->currentParamType]);
        } else {
            if (isset($object->configs[$this->currentParamType])) {
                if (!is_array($object->configs[$this->currentParamType])) {
                    unset($object->configs[$this->currentParamType]);
                } else {
                    if (is_array($paramName)) {
                        $paramName = [$paramName];
                    }
                    foreach ($paramName as $paramKey) {
                        if (is_string($paramKey) || is_numeric($paramKey)) {
                            unset($object->configs[$this->currentParamType][$paramName]);
                        }
                    }
                }
            }
        }

        return $object->buildConfigClient();
    }
public function withoutParam($paramName = null)
    {
        $object = clone $this;
        if (is_null($paramName)) {
            unset($object->configs[$this->currentParamType]);
        } else {
            if (isset($object->configs[$this->currentParamType])) {
                if (!is_array($object->configs[$this->currentParamType])) {
                    unset($object->configs[$this->currentParamType]);
                } else {
                    if (is_array($paramName)) {
                        $paramName = [$paramName];
                    }
                    foreach ($paramName as $paramKey) {
                        if (is_string($paramKey) || is_numeric($paramKey)) {
                            unset($object->configs[$this->currentParamType][$paramName]);
                        }
                    }
                }
            }
        }

        return $object->buildConfigClient();
    }
Remove All existing Parameter

@param  string|null $paramName
@return static