If the folder does not exist then delete references to it.