At the center of OEChem are the molecule objects. The example below represents the smallest possible Python/OEChem script. This program creates an OEMol called mol when run. When the program ends, Python automatically cleans up the object.
from openeye.oechem import * mol = OEMol()
There may be times when you want to delete (destroy) a molecule before
the end of the script. This can easily be done by using the built-in
command, del
.
from openeye.oechem import * mol = OEMol() del(mol)