The person who appears in his heart in a dream may cause inner thoughts or memories for some reasons, and these emotions cannot be fully alleviated during sleep, thus resulting in a dream.
Although this person has been deleted, his feelings and memories remain in his heart, so he will still appear in the dream.
In a word, dreams can't fully reflect a person's inner state and life experience, and they need to be understood through comprehensive analysis of various factors.