If you want to erase a straight line in Photoshop, there are a few different ways to go about it. The easiest way is to use the Pen tool and click and drag the line until it disappears. You can also use the Eraser tool (E) and click and drag it over the line to erase it. ..