I want the eraser to make the image transparent. How do I do that?
The eraser usually uses the background color. But if an image has an alpha channel/transparency, using the eraser makes an image transparent. An alpha channel/transparency is created in the Layer Attributes (see chapter 4.11).