Table of Contents
Engine.CleanUpCacheFolders Method (String, CacheFolderCleanUpPolicy)

Clean up cache folders.

Syntax
 public static void CleanUpCacheFolders(
   string cacheFolder,
   CacheFolderCleanUpPolicy policy
);

Parameters

cacheFolder
The cache folder to be cleaned up. Use null to specify the default location.
policy
Clean up policy.
Remarks

The browser engine will automatically create a cache folder if CachePath is not set. Because the automatically created cache folder include version number, multiple cache folders can accumulate and consume extra disk space unnecessarily. Call this method during application start up to automatically delete those folders.

See Also