CacheErase function