> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# admin_remove_host

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_remove_host"> <span className="sig-name descname"><span className="pre">admin\_remove\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L14936"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using <a className="reference internal" href="#gpudb.GPUdb.admin_remove_ranks" title="gpudb.GPUdb.admin_remove_ranks"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_remove\_ranks()</span></code></a> or manually switched over to a new host using <a className="reference internal" href="#gpudb.GPUdb.admin_switchover" title="gpudb.GPUdb.admin_switchover"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_switchover()</span></code></a> prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using <a className="reference internal" href="#gpudb.GPUdb.admin_switchover" title="gpudb.GPUdb.admin_switchover"><code className="xref py py-meth docutils literal notranslate"><span className="pre">GPUdb.admin\_switchover()</span></code></a>.</p>

      <div className="admonition note">
        <p className="admonition-title">Note</p>
        <p>This method should be used for on-premise deployments only.</p>
      </div>

      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">host (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.</p>
            </div>

            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Optional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>dry\_run</strong> – If set to <span className="em">true</span>, only validation checks will be performed. No host is removed. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
