![cmake install prefix remaints cmake install prefix remaints](https://i.stack.imgur.com/oEvfB.png)
tar.gz file and passing all the same options you used (if any) to. That is, you would follow the same installation steps, starting from the same.
![cmake install prefix remaints cmake install prefix remaints](https://pyimagesearch.com/wp-content/uploads/2018/05/install_opencv-1804-header.jpg)
If you have deleted the folder in which you ran sudo make install, or otherwise changed it, then your best bet is to rebuild and reinstall it (be sure to use exactly the same version) to get back the ability to run sudo make uninstall.
CMAKE INSTALL PREFIX REMAINTS SOFTWARE
Not all software that can be installed by running make install has a corresponding uninstall target letting you run make uninstall to remove it.