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

## [◆ ](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#a87e3605b58acf4ec17c20a6d687e06a2)dropSession() \[1/4]

<table>
  <tr>
    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) gpudb::GPUdb::dropSession </td>
    <td>(</td>
    <td>const [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) &</td>
    <td>request\_</td>
    <td>)</td>
    <td> const</td>
  </tr>
</table>

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. Objects outside the session that depend on those tables are invalidated, not dropped.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.Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>request\_</td>
    <td>[Request](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object containing the parameters for the operation.</td>
  </tr>
</table>

Returns[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the result of the operation.&#x20;

## [◆ ](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#a3dd879b6ee6042a45dad60ad95dd5363)dropSession() \[2/4]

<table>
  <tr>
    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) & gpudb::GPUdb::dropSession </td>
    <td>(</td>
    <td>const [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) &</td>
    <td>request\_, </td>
  </tr>

  <tr>
    <td />

    <td />

    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) &</td>
    <td>response\_ ) const</td>
  </tr>
</table>

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. Objects outside the session that depend on those tables are invalidated, not dropped.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.Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>request\_</td>
    <td>[Request](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object containing the parameters for the operation. </td>
  </tr>

  <tr>
    <td>\[out]</td>
    <td>response\_</td>
    <td>[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the results of the operation.</td>
  </tr>
</table>

Returns[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the result of the operation (initially passed in by reference).&#x20;

## [◆ ](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#a2de4485ae7d87181ceff5a936960e251)dropSession() \[3/4]

<table>
  <tr>
    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) gpudb::GPUdb::dropSession </td>
    <td>(</td>
    <td>const std::map\< std::string, std::string > &</td>
    <td>options</td>
    <td>)</td>
    <td> const</td>
  </tr>
</table>

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. Objects outside the session that depend on those tables are invalidated, not dropped.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.Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>options</td>
    <td>Optional parameters. The default value is an empty map.</td>
  </tr>
</table>

Returns[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the result of the operation.&#x20;

## [◆ ](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#adc2370dde06c7de819521e113cde37fc)dropSession() \[4/4]

<table>
  <tr>
    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) & gpudb::GPUdb::dropSession </td>
    <td>(</td>
    <td>const std::map\< std::string, std::string > &</td>
    <td>options, </td>
  </tr>

  <tr>
    <td />

    <td />

    <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) &</td>
    <td>response\_ ) const</td>
  </tr>
</table>

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. Objects outside the session that depend on those tables are invalidated, not dropped.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.Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>options</td>
    <td>Optional parameters. The default value is an empty map. </td>
  </tr>

  <tr>
    <td>\[out]</td>
    <td>response\_</td>
    <td>[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the results of the operation.</td>
  </tr>
</table>

Returns[Response](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionResponse.md) object containing the result of the operation (initially passed in by reference).&#x20;


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