Deleting opencv under ubuntu requires the following steps:
1. Enter the release under the source code folder of opencv (this is the directory you named when you installed opencv, and the directory where cmake is located)
2. Execute the following command
make uninstall cd .. sudo rm -r build sudo rm -r /usr/local/include/opencv2 /usr/local/include/opencv /usr/include/opencv /usr/include/opencv2 /usr/local/share/opencv /usr/local/share/OpenCV /usr/share/opencv /usr/share/OpenCV /usr/local/bin/opencv* /usr/local/lib/libopencv*