Removing ref to deleted file