> ## 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.

# gpudb::AdminRemoveHostRequest

> gpudb::AdminRemoveHostRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#afc27231b396dfca335854fb0094d16e6">GPUdb::adminRemoveHost</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/admin__remove__host_8h_source">gpudb/protocol/admin\_remove\_host.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:a0c21299b9b79ac8b36449426790be35f" id="r_a0c21299b9b79ac8b36449426790be35f">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a0c21299b9b79ac8b36449426790be35f">AdminRemoveHostRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a0c21299b9b79ac8b36449426790be35f">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRemoveHostRequest" title="A set of parameters for GPUdb::adminRemoveHost.">AdminRemoveHostRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:a0c21299b9b79ac8b36449426790be35f">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a6ccdc1dee366e1c46d88efc669adba88" id="r_a6ccdc1dee366e1c46d88efc669adba88">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a6ccdc1dee366e1c46d88efc669adba88">AdminRemoveHostRequest</a> (const std::string \&host\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:a6ccdc1dee366e1c46d88efc669adba88">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRemoveHostRequest" title="A set of parameters for GPUdb::adminRemoveHost.">AdminRemoveHostRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:a6ccdc1dee366e1c46d88efc669adba88">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:afad1910aa849d6b8025bc31d114a8ee1" id="r_afad1910aa849d6b8025bc31d114a8ee1">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#afad1910aa849d6b8025bc31d114a8ee1">host</a></td>
      </tr>

      <tr className="memdesc:afad1910aa849d6b8025bc31d114a8ee1">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Identifies the host this applies to. <br /></td>
      </tr>

      <tr className="separator:afad1910aa849d6b8025bc31d114a8ee1">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:adfc2e6f650870d3c555b53a803556fa9" id="r_adfc2e6f650870d3c555b53a803556fa9">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#adfc2e6f650870d3c555b53a803556fa9">options</a></td>
      </tr>

      <tr className="memdesc:adfc2e6f650870d3c555b53a803556fa9">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:adfc2e6f650870d3c555b53a803556fa9">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#afc27231b396dfca335854fb0094d16e6">GPUdb::adminRemoveHost</a>. </p>
      <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="el" href="/content/api/cpp/classgpudb_1_1GPUdb#af47d6fbc166de5aa113aacbd9cad9ca7">GPUdb::adminRemoveRanks</a> or manually switched over to a new host using <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a2c4d8fe04dc3c5feb4e5e343889bddf8">GPUdb::adminSwitchover</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="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a2c4d8fe04dc3c5feb4e5e343889bddf8">GPUdb::adminSwitchover</a>. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__remove__host_8h_source#l00027">27</a> of file <a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a0c21299b9b79ac8b36449426790be35f">◆ </a></span>AdminRemoveHostRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AdminRemoveHostRequest::AdminRemoveHostRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRemoveHostRequest" title="A set of parameters for GPUdb::adminRemoveHost.">AdminRemoveHostRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__remove__host_8h_source#l00032">32</a> of file <a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a6ccdc1dee366e1c46d88efc669adba88">◆ </a></span>AdminRemoveHostRequest() <span className="overload">\[2/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AdminRemoveHostRequest::AdminRemoveHostRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">host\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">options\_</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRemoveHostRequest" title="A set of parameters for GPUdb::adminRemoveHost.">AdminRemoveHostRequest</a> object with the specified parameters. </p>

        <div className="dl params">
          <div className="dt">Parameters</div>

          <div className="dd">
            <table className="params">
              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">host\_</td>
                <td>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. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>

                <td>
                  Optional parameters.

                  <ul>
                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#aa8697bd541887a40667747ceabd91198">admin\_remove\_host\_dry\_run</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a486c0f0df4eec1c3174ea18952fd2e0e">true</a>, only validation checks will be performed. No host is removed. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a486c0f0df4eec1c3174ea18952fd2e0e">admin\_remove\_host\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a72ff1372a511e0e43f83fbebe235f4da">admin\_remove\_host\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a72ff1372a511e0e43f83fbebe235f4da">admin\_remove\_host\_false</a>.
                    </li>
                  </ul>

                  The default value is an empty map.
                </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__remove__host_8h_source#l00067">67</a> of file <a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#afad1910aa849d6b8025bc31d114a8ee1">◆ </a></span>host</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::AdminRemoveHostRequest::host</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Identifies the host this applies to. </p>
        <p>Can be the host address, or formatted as 'hostN' where N is the host number as specified in gpudb.conf. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__remove__host_8h_source#l00078">78</a> of file <a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#adfc2e6f650870d3c555b53a803556fa9">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::AdminRemoveHostRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

        <ul>
          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#aa8697bd541887a40667747ceabd91198">admin\_remove\_host\_dry\_run</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#a486c0f0df4eec1c3174ea18952fd2e0e">true</a>, only validation checks will be performed. No host is removed. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a486c0f0df4eec1c3174ea18952fd2e0e">admin\_remove\_host\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a72ff1372a511e0e43f83fbebe235f4da">admin\_remove\_host\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a72ff1372a511e0e43f83fbebe235f4da">admin\_remove\_host\_false</a>.
          </li>
        </ul>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__remove__host_8h_source#l00099">99</a> of file <a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/admin__remove__host_8h_source">admin\_remove\_host.h</a></li>
    </ul>
  </div>
</div>
