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

# dropSession

<div className="kinetica-doxygen">
  <div id="a87e3605b58acf4ec17c20a6d687e06a2" />

  <h2 className="memtitle"><span className="permalink"><a href="/content/api/cpp/classgpudb_1_1GPUdb/dropsession#a87e3605b58acf4ec17c20a6d687e06a2">◆ </a></span>dropSession() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> gpudb::GPUdb::dropSession </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionRequest">DropSessionRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. </p>
      <p>Objects outside the session that depend on those tables are invalidated, not dropped.</p>
      <p>A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.</p>
      <p>Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a3dd879b6ee6042a45dad60ad95dd5363" />

  <h2 className="memtitle"><span className="permalink"><a href="/content/api/cpp/classgpudb_1_1GPUdb/dropsession#a3dd879b6ee6042a45dad60ad95dd5363">◆ </a></span>dropSession() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> & gpudb::GPUdb::dropSession </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionRequest">DropSessionRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. </p>
      <p>Objects outside the session that depend on those tables are invalidated, not dropped.</p>
      <p>A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.</p>
      <p>Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.</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">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a2de4485ae7d87181ceff5a936960e251" />

  <h2 className="memtitle"><span className="permalink"><a href="/content/api/cpp/classgpudb_1_1GPUdb/dropsession#a2de4485ae7d87181ceff5a936960e251">◆ </a></span>dropSession() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> gpudb::GPUdb::dropSession </td>
          <td>(</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>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. </p>
      <p>Objects outside the session that depend on those tables are invalidated, not dropped.</p>
      <p>A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.</p>
      <p>Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.</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">options</td>
              <td>Optional parameters. The default value is an empty map.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="adc2370dde06c7de819521e113cde37fc" />

  <h2 className="memtitle"><span className="permalink"><a href="/content/api/cpp/classgpudb_1_1GPUdb/dropsession#adc2370dde06c7de819521e113cde37fc">◆ </a></span>dropSession() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> & gpudb::GPUdb::dropSession </td>
          <td>(</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>

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

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">DropSessionResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. </p>
      <p>Objects outside the session that depend on those tables are invalidated, not dropped.</p>
      <p>A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.</p>
      <p>Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.</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">options</td>
              <td>Optional parameters. The default value is an empty map. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1DropSessionResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.