we are using groupDocs Viewer for .Net(Assembly version 18.104.22.16883).
we are facing an issue of server ran out of space due to not removal of Old cached document.
The source Code which we used to remove old cached document is here.
DocumentCache cache = new DocumentCache(Server.MapPath("~/License/GroupDocsViewer.lic"), Server.MapPath()); //Example: \<MyServerName\AppName\CacheFolder>
TimeSpan olderThan = new TimeSpan(60, 0, 0, 0); // Time Span. example 60 Days.
cache.RemoveOldEntries(olderThan, null); // no logfile path is passed.
These code execute on OnLoad event of my application.
No exception is occurs when code execute but no data entries remove from the caching folder.
we need automation of removal caching after a fixed interval of time.
let me know if you need any more information.
Please suggest all possible option to fix this.