# deinit

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/java_deinit.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/java_deinit.html)

Graceful termination of the QESDK connection is initiated by the application, either
    upon application exit or by explicitly invoking the QESDK deinit() function. Any registered API
    callbacks through the QESDK framework are canceled. Applications can initialize and
    de-initialize all services in single call.

deinit()Copy to clipboard

Note: If an active QESDK application terminates or crashes, then all the QESDK
      resources associated with that session are automatically unregistered and released.

## Returns

| Return | Description |
| --- | --- |
| int | <ul class="ul" id="deinit_10__ul_azl_d5t_zxb_spyrz_07-03-23-1122-19-502"><br>                  <li class="li">0: Success</li><br><br>                  <li class="li">Error code (negative value)</li><br><br>                </ul> |

**Parent Topic:** [QESDK specific APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/qesdk_specific_apis.html)

Last Published: Nov 14, 2024

[Previous Topic
init](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/java_init.md) [Next Topic
getSupportedAPI](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/java_get_supported_api.md)