> ## 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/cs/classkinetica_1_1Kinetica/dropsession.md#af719c55be382070474fc7780411c1501)dropSession() \[1/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionResponse.md) kinetica.Kinetica.dropSession </td>
          <td>(</td>
          <td>[DropSessionRequest](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionRequest.md)</td>
          <td>request\_</td>
          <td>)</td>

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

    <td> inline </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>request\_</td>
    <td>Request object containing the parameters for the operation.</td>
  </tr>
</table>

ReturnsResponse object containing the result of the operation.&#x20;

Definition at line [33921](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L33921) of file [KineticaFunctions.cs](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs).

## [◆ ](https://docs.kinetica.com/content/api/cs/classkinetica_1_1Kinetica/dropsession.md#a70e468c8134d775bc4ee3699133278f1)dropSession() \[2/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>[DropSessionResponse](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionResponse.md) kinetica.Kinetica.dropSession </td>
          <td>(</td>
          <td>IDictionary\< string, string ></td>
          <td>options = null</td>
          <td>)</td>

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

    <td> inline </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>options</td>
    <td>Optional parameters. The default value is an empty Dictionary.</td>
  </tr>
</table>

ReturnsResponse object containing the result of the operation.&#x20;

Definition at line [33970](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L33970) of file [KineticaFunctions.cs](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs).

## [◆ ](https://docs.kinetica.com/content/api/cs/classkinetica_1_1Kinetica/dropsession.md#abd2b56330e0ccb728fb22585fca2b8ee)DropSessionAsync() \[1/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>async System.Threading.Tasks.Task\< [DropSessionResponse](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionResponse.md) > kinetica.Kinetica.DropSessionAsync </td>
          <td>(</td>
          <td>[DropSessionRequest](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionRequest.md)</td>
          <td>request\_, </td>
        </tr>

        <tr>
          <td />

          <td />

          <td>System.Threading.CancellationToken</td>
          <td>cancellationToken = default )</td>
        </tr>
      </table>
    </td>

    <td> inline </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. (async) 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>request\_</td>
    <td>Request object containing the parameters for the operation.</td>
  </tr>

  <tr>
    <td>cancellationToken</td>
    <td>Cancellation token to cancel the operation.</td>
  </tr>
</table>

ReturnsTask that returns the response object containing the result of the operation.

Definition at line [33946](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L33946) of file [KineticaFunctions.cs](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs).

## [◆ ](https://docs.kinetica.com/content/api/cs/classkinetica_1_1Kinetica/dropsession.md#a955ecf781641464f1b86c2efa0316c85)DropSessionAsync() \[2/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>async System.Threading.Tasks.Task\< [DropSessionResponse](https://docs.kinetica.com/content/api/cs/classkinetica_1_1DropSessionResponse.md) > kinetica.Kinetica.DropSessionAsync </td>
          <td>(</td>
          <td>IDictionary\< string, string ></td>
          <td>options = null, </td>
        </tr>

        <tr>
          <td />

          <td />

          <td>System.Threading.CancellationToken</td>
          <td>cancellationToken = default )</td>
        </tr>
      </table>
    </td>

    <td> inline </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. (async) 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>options</td>
    <td>Optional parameters. The default value is an empty Dictionary.</td>
  </tr>

  <tr>
    <td>cancellationToken</td>
    <td>Cancellation token to cancel the operation.</td>
  </tr>
</table>

ReturnsTask that returns the response object containing the result of the operation.

Definition at line [33993](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L33993) of file [KineticaFunctions.cs](https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs).


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