To delete the visible subdiagram, right-click the structure border and select Delete This Case (or Frame or Subdiagram) from the shortcut menu.
If only one subdiagram exists, you cannot delete the visible subdiagram.