Removing reference to deleted file