Magic Eraser tool basic function
To use the Magic Eraser tool you simply click on the background somewhere and it will vanish. If you only have one layer open, when you click to remove the background the pixels will be turned into a transparency, in other words there will be nothing there so you'll just see a chequered pattern.