Remove ref to nonexistent directory