Remove Pycharm completely , Ubuntu
You can try the following commands it will completely delete the pycharm with its preferences from ubuntu.
rm -fv /usr/local/bin/charm
rm -rfv ~/Library/Preferences/PyCharm?0
rm -rfv ~/Library/Caches/PyCharm?0
rm -rfv ~/Library/Application\ Support/PyCharm?0
rm -rfv ~/Library/Logs/PyCharm?0
Incase if pycharm is installed using snap package
then you could remove it by running following commands:
sudo snap remove [pycharm-professional|pycharm-community]
rm -rf ~/.PyCharm2017.3
rm -rf ~/.java/.userPrefs/jetbrains/pycharm/
replace .PyCharm2017.3
with your installed version.