Are the dreams really "erased" from your brain (or are they just "stored" away somewhere)?

Why does your brain do this?