Selection > Erase Selected Pixels
Erase Selected Pixels
The Erase Selected Pixels tool allows you to fill a selection or layer with a color, or make the selection or layer partially or fully transparent.
1. Choose Selection > Erase Selected Pixels
2. Use the following options:
Foreground Color
Fills the selection or layer with the foreground color.
Background Color
Fills the selection or layer with the background color.
Color
Fills the selection or layer with the specified color.
Transparent
Makes the selection or layer partially or fully transparent.
Content-Aware Fill
Fills the selection by using the 'Content-Aware Fill' tool. This tool examines the contents of the image and tries to fill in the selected area with actual image detail.
Opacity
Use this option to set the opacity of the color, gradient, layer, or image you are working with. Opacity is the opposite of transparency. If something has an opacity value of 100%, that means it’s completely visible. An opacity value of 0% indicates that an object is completely transparent.
Antialias
    
Without antialiasWith antialias
Use this option to draw smooth flowing lines by shading the pixels along the borders of graphical elements.
Preserve Transparency
Use this option to preserve transparent pixels in the image, (partially) transparent pixels remain transparent.
Related Information
How Do I > Move Pixels in a Raster Layer
Tools > Move Pixels
Tools > Eraser
Tools > Eraser > Eraser
Tools > Eraser > Magic Eraser
Search the Internet