Hi,
removelayer(layername,true) should remove the layer "layername" and all it's childrens, but the childrens are not removed ?
https://www.360images.fr/barebone_removelayer/
Maybe something I didn't get ?
EDIT : works as expected with a delayedcall, so I guess onstart scene action is executed before all the layers are loaded ?