Removing layers, or parts of layers, mechanically or chemically