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

<ul>
  <li>
    ### dropSession

    public [DropSessionResponse](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionResponse.md) dropSession<wbr />([DropSessionRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionRequest.md) request) throws [GPUdbException](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdbException.md)

    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.
    &#x20;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.&#x20;
    &#x20;Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

    Parameters:`request` - [`Request`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionRequest) object containing the parameters for the operation.Returns:[`Response`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionResponse) object containing the results of the operation.Throws:`GPUdbException` - if an error occurs during the operation.
  </li>

  <li>
    ### dropSession

    public [DropSessionResponse](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionResponse.md) dropSession<wbr />([Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options) throws [GPUdbException](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdbException.md)

    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.
    &#x20;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.&#x20;
    &#x20;Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op.

    Parameters:`options` - Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).Returns:[`Response`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/DropSessionResponse) object containing the results of the operation.Throws:`GPUdbException` - if an error occurs during the operation.
  </li>
</ul>


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