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