Erasing a memory is very easy.
When the memory came to your mind, try imagine that you are holding a big eraser of whiteboard duster. Then wipe off the memory as if you are cleaning a whiteboard or blackboard.
If it is in your heart, wipe your heart with the imaginary eraser,
Isn't it easy?
Note: why the blackboard is called blackboard when it is actually dark green?