Pixels within the circle cursor (ctrl-middle mouse button) are set to zero, and the thickness of the next line cursor is set by the diameter of the circle.
Pixels along the line cursor (shift-middle mouse button) are set to zero. The thickness of the erased line is set to the diameter of the last erased circle.
Use File / Save Image As... to save the edited image. There is no undo method, except to re-load the displayed image before saving it. The edited image may be used as a Simple mask in the dtprocess Setup menu or it may be used as the second parameter to dtnonunfedit to edit a nonunf file.
If the detector swing angle is not 0, one must still select the beam position as shown in the image. The selected position will be used to calculate the pixel position when the swing angle is 0 and that will be placed in the header.
Be sure to use File/Save Header As..., so that other d*TREK programs can learn of the new beam position.