Is there any way to clear cache and app data by programmatically in expo project?

Hi,
I need to clear app data and cache by programmatically.
Is there any way to clear cache and app data in component did mount method?

expo start -c

Hi @taeeh,
Need programmatically not by cmd or terminal.
I need to clear cache on component did mount method.

var RCTNetworking = require(“RCTNetworking”);

RCTNetworking.clearCookies(() => {});

1 Like

@taeeh
Thanks!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.