delete LayerSpec