Is this page helpful?
public static int DeleteCacheFiles(
string dirName,
DateTime lastAccessTime
)
dirName
Name of the folder where the cache files are.
lastAccessTime
The last System.DateTime a cache file has been accessed
The number of deleted files.