Etching the insulating layers by chemical or physical means