Attempting to delete a ProcessGroup that contains another ProcessGroup, with a connected InputPort, triggers the message
"Cannot delete Process Group because Input Port XXX has at least one incoming connection from a component outside of the Process Group. Delete this connection first."
The manual solution for this is to go into the ProcessGroup, delete the contents and then delete the outer ProcessGroup.
The equivalent happens for OutputPorts.