A layer mask is used to reveal a portion of a layer while the rest of the layer remains hidden. This means that you can use a mask layer to 'delete' areas of a layer that you don't want.
In Affinity Photo, two types of masking are possible:
Masks are applied as a separate layer, allowing them to be freely edited and moved. Mask layers affect any layer below them within the Layers Studio. They can also be clipped to individual layers so that only that layer is affected. Alternatively, mask layers can be added to layer groups so they only affect that group.
Adjustment layers and live filter layers also have mask layer properties. Areas of an adjustment layer can be revealed or hidden in the same way as with a mask layer.
You can apply destructive filters to mask layers. For example, a selection of blur, sharpen, distortion or noise filters can be applied to mask layers, as well as layers with mask layer properties such as adjustment layers, live filter layers and masked fill layers; spare channels can also take destructive filters too.
Do one of the following on the Layers Studio:
Paint on the page using the Erase Brush Tool.
By default, the Assistant will add a layer mask to the selected layer to accommodate your paint strokes. Once the mask is in place, you can 'restore' the mask using the Paint Brush Tool.