In GIS, the erase function is an analytical process in which the output feature class is created by copying the portions of the input features that lie outside the boundaries of the erase features. In other words, the Erase tool is used to perform overlay analysis on feature classes. This tool creates a feature class from those features or portions of features outside the erase feature class. The spatial data of the input layer that intersects the erase layer is excluded from the final output layer. A polygon feature can be used to erase other polygons, lines, or points.
In Figure 1 below, the function of the Erase tool is illustrated: