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

# close

### close

<ul>
  <li>
    close(): Promise\<void>

    Closes this client: drops the SQL `#name` temp tables it created, if any. The client cannot be used afterwards: every request fails at once, without failing over. Closing a closed client does nothing, and a close already under way is waited for.The drop fails over like any request. A failure is logged, not thrown, since the server reclaims the session on its own. It is skipped where no temp table was created, and against a server that does not support session temp tables, which never reports one. A session given by [GPUdbOptions.session\_id](https://docs.kinetica.com/content/api/typescript/interfaces/GPUdbOptions.md#session_id) is not dropped: the caller drops it with `drop_session()`.A client that is never closed still has its temp tables dropped when it is garbage collected, on a best-effort basis, where the runtime has FinalizationRegistry; failing that, the server reclaims them on its own. Closing it is what makes the drop prompt.

    #### Returns Promise\<void>

    Promise resolving once the client is closed

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


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