removing pointer to a file that doesnt exist anymore