code: def delete(self, num_name):
          
  
          try:
              vg = self.attach(num_name, 1)
          except HDF4Error as msg:
              raise HDF4Error("delete: no such vgroup")
  
          # ATTENTION: The HDF documentation says that the vgroup_id
          #            is passed to Vdelete(). This is wrong.
          #            The vgroup reference number must instead be passed.
          refnum = vg._refnum
          vg.detach()
          _checkErr('delete', _C.Vdelete(self._hdf_inst._id, refnum),
                    "error deleting vgroup")
docs: Delete from the HDF file the vgroup identified by its
          reference number or its name.
  
          Args::
  
            num_name    either the reference number or the name of
                        the vgroup to delete
  
          Returns::
  
            None
  
          C library equivalent : Vdelete