> For the complete documentation index, see [llms.txt](https://docs.truecaller.com/truecaller-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truecaller.com/truecaller-sdk/android/sdk-v2.8.0-deprecating-soon/integrating-with-your-app/clearing-sdk-instance.md).

# Clearing SDK instance

In order to clear the resources taken up by SDK, you can use the method `TruecallerSDK.clear();` You can call this method when the activity/fragment in which you have initialised the SDK is getting killed/destroyed.

For example :

Copy

```
@Override
protected void onDestroy() {
   super.onDestroy();
   TruecallerSDK.clear();
}
```
