wrong function to delete viewed files