.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OETrimConformers

.. oe:function:: OETrimConformers

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OETrimConformers(OEChem::OEMCMolBase& mol, unsigned int N)

   .. oe:language:: python

      .. oe:api:: python

         OETrimConformers(mol: OEMol, N: int) -> bool

   Deletes conformers of *mol*, starting with those with the 
   highest conformer index, such *mol* has *N* conformers
   remaining.  

   If *mol* has less than *N* conformers, or *N* is passed 0 then
   this function is a no-op.
