3.24.7 DeleteBond

virtual bool DeleteBond(OEBondBase *bnd)

Delete a bond from a molecule. Following a bond deletion, the specified OEBondBase pointer is no longer valid and should not be used. The bond index associated with the bond is no longer recognized by the OEMolBase, but the indices of all other bonds remain stable, and are unaffected by this call.

After deleting atoms or bonds, it may be necessary to call the OEFindRingAtomsAndBonds and OEAssignAromaticFlags functions to update the ``in ring'' and ``aromatic'' properties of the atoms and bonds in the modified molecule.