You’ll get the best results removing solid colors with clear boundaries. To remove areas that are less distinct, select a smaller area and repeat the process.
To remove unwanted elements:
As you drag, the selection grows to include the contiguous area that uses similar colors. You can control how much of the image is selected by dragging less or more.
In the Tool Options, you can set the Magic Eraser opacity.