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

# drop_session

### drop\_session

<ul>
  <li>
    drop\_session(\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[DropSessionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionResponse.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.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

    <ul>
      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[DropSessionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionResponse.md)>

    Promise\<Types.DropSessionResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:8618](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L8618)</li>
    </ul>
  </li>
</ul>

### drop\_session\_request

<ul>
  <li>
    drop\_session\_request(\
    &#x20;request: [DropSessionRequest](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[DropSessionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionResponse.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.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

    <ul>
      <li>
        request: [DropSessionRequest](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[DropSessionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/DropSessionResponse.md)>

    Promise\<Types.DropSessionResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:8587](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L8587)</li>
    </ul>
  </li>
</ul>


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