Err DeleteScreenGroup (Item screenGroupItem)
CreateScreenGroup() does. Before release 1.3, DeleteScreenGroup() was defined to DeleteItem(), which was insufficient.
DeleteScreenGroup() frees memory for bitmap items, if and only if, the memory was allocated by CreateScreenGroup(). Screen and VDL items associated with the screenGroupItem are deleted.
DeleteScreenGroup() is as clever as you are. Unwind all your modifications before calling DeleteScreenGroup().
CreateScreenGroup()