Uninstalling LaTeX
The following hints will help you to remove the installed LaTeX packages properly. Provided you have installed the LaTeX packages with your package manager.
# apt remove tex*
$ rm -rf /usr/local/texlive/<YEAR>
$ rm -rf ~/.texlive<YEAR>
$ brew remove mactex
# rm -rf /usr/local/texlive
# rm -rf /Library/TeX
Press the Windows key and search for “Add or remove programs”
Show screenshot

In the app list, find “TeX Live <YEAR>” and click “…” then “Uninstall”
Show screenshot

Follow the uninstaller, then check if any of those directories still exist and remove them:
C:\texlive\C:\Users\<YOUR_USERNAME>\texmf\C:\Users\<YOUR_USERNAME>\AppData\Roaming\TeXLive\C:\Users\<YOUR_USERNAME>\AppData\Local\TeXLive\