add function to remove old cached file