how to remove opencv code example
Example 1: how to uninstall opencv in ubuntu
sudo apt-get purge '*opencv*'
Example 2: uninstall cv2 in pi
If you installed using pip. sudo pip uninstall opencv.
If you Installed using apt-get. sudo apt-get remove python-opencv. sudo apt-get purge python-opencv.