# Clear App Cache

{% hint style="info" %}
You'll need to import the javascript file in your website before starting from this [link](https://docs.webtonative.com/javascript-apis/getting-started).
{% endhint %}

To clear the cache when app is running.

{% tabs %}
{% tab title="Plain Javascript" %}
WTN.clearAppCache(false);

Note :- If you want to reload the app after cache is cleared you can call the function as below.

WTN.clearAppCache(true);
{% endtab %}

{% tab title="ES5+" %}
import { clearAppCache } from "webtonative";

clearAppCache(false);

Note :- If you want to reload the app after cache is cleared you can call the function as below.

clearAppCache(true);
{% endtab %}
{% endtabs %}

Feature released on 15/08/2023
