Click or drag to resize

DesktopSystemclearCache Method

Clears cached data containing window state/positions, application resource files (images, HTML, JavaScript files) cookies, and items stored in the Local Storage.

Requires administrator privileges.

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.6.0
Syntax
C#
public void clearCache(
	bool cache,
	bool cookies,
	bool localStorage,
	bool appcache,
	bool userData,
	AckCallback callback = null,
	AckCallback errorCallback = null
)

Parameters

cache
Type: SystemBoolean
If true, clears chrome caches
cookies
Type: SystemBoolean
If true, deletes all cookies.
localStorage
Type: SystemBoolean
If true, clears local storage.
appcache
Type: SystemBoolean
If true, clear application caches.
userData
Type: SystemBoolean
If true, clears user data.
callback (Optional)
Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method succeeds.
errorCallback (Optional)
Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method fails. The reason for failure is passed as an argument.
See Also