********************************************************************************
Uninstallation
********************************************************************************

Uninstalling OpenEye Python Toolkits - Anaconda
===============================================

Uninstallation is straightforward::


   (oepython)$ conda uninstall openeye-toolkits

   The following packages will be REMOVED:

   openeye-toolkits: 2018.2-py34_0 openeye

   Proceed ([y]/n)?

Uninstalling OpenEye Python Toolkits - PIP
==========================================

Special care must be taken to uninstall everything when the
OpenEye toolkits were installed from OpenEye's `anaconda.org
repository <https://anaconda.org/OpenEye>`_. The following command will
actually install two packages, as can be seen with the following ``pip list``
command::

   (oepython) $ pip install -i https://pypi.anaconda.org/OpenEye/simple OpenEye-toolkits
   ...
   (oepython) $ pip list
   OpenEye-toolkits (|pypkgversion|)
   OpenEye-toolkits-python3-osx-x64 (|pypkgversion|)
   pip (9.0.1)
   setuptools (0.38.4)

The ``OpenEye-toolkits`` package is referred to as the "meta-package"
as its sole purpose is to do automatic platform detection for the
proper binary package, then install that package as well. The
``OpenEye-toolkits-python3-osx-x64`` package seen above is the
actual package that contains the ``openeye`` module. That means to
fully uninstall all OpenEye toolkit packages, both packages need to be
removed. Both packages can be removed by explicitly specifying both
like the following::

   (oepython) $ pip uninstall OpenEye-toolkits
   ...
   (oepython) $ pip uninstall OpenEye-toolkits-python3-osx-x64
   ...

For those wishing to only copy and paste a single command to uninstall
all OpenEye Python packages, the following Linux shell one liner will
do the trick::

   (oepython) $ pip uninstall \`pip list | grep 'OpenEye-toolkits' | awk '{print $1}' | xargs\`
   Uninstalling OpenEye-toolkits:
   ...
   Proceed (y/n)? y
   Successfully uninstalled OpenEye-toolkits
   Uninstalling OpenEye-toolkits-python3-osx-x64:
   ...
   Proceed (y/n)? y
   Successfully uninstalled OpenEye-toolkits-python3-osx-x64
