completely uninstall and remove opencv ubuntu code example Example: how to uninstall opencv in ubuntu sudo apt-get purge '*opencv*'