Delete graphical contents of system
To delete the contents of a Subsystem block, use the Simulink.SubSystem.deleteContents
function.
Simulink.BlockDiagram.copyContentsToSubsystem
| Simulink.SubSystem.convertToModelReference
| Simulink.SubSystem.copyContentsToBlockDiagram
| Simulink.SubSystem.deleteContents