Implemented deleteCache.