Buffers do not "erase" text. Text is "deleted", snipped out like cutting the middle section out of a string and sticking the two ends back together.