27

I want to remove my old pycharm completely from my Ubuntu machine so my new installation will not be affected from previous settings. Any help will be appreciated

Zohaib Ijaz
  • 21,926
  • 7
  • 38
  • 60

13 Answers13

31

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
Nauman Tariq
  • 1,350
  • 1
  • 14
  • 7
19

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.

Richie
  • 4,404
  • 2
  • 17
  • 22
17

If you installed by ./pycharm.sh

Remove all folder and files below :

/usr/local/bin/charm => should rm with sudo
~/.Pycharm<version>
~/.local/share/icons/jetbrains-pycharm.png
~/.local/share/applications/jetbrains-pycharm.desktop
~/.java/.userPrefs/jetbrains/

And now you can reinstall new version, or having a clean pc without pycharm.

Edwin Lai
  • 359
  • 1
  • 3
  • 8
14

Try this

sudo snap remove pycharm-professional pycharm-community
sudo apt-get autoclean 
sudo apt-get autoremove
baponkar
  • 272
  • 4
  • 15
9
sudo find / -name *PyCharm*

Delete all output directories.

For example:

$ sudo find / -name *PyCharm*
[sudo] password for MY_USERNAME:
/home/MY_USERNAME/.cache/JetBrains/PyCharmCE2020.1
/home/MY_USERNAME/.PyCharmCE2019.1
$ rm -rf /home/MY_USERNAME/.cache/JetBrains/PyCharmCE2020.1 /home/MY_USERNAME/.PyCharmCE2019.1
Rt.Tong
  • 196
  • 3
  • 5
  • 2
    Please add some explanation to your answer such that others can learn from it. The given command does not delete anything – Nico Haase Apr 21 '20 at 06:35
4

As Pycharm doesn't have any install or uninstall program for ubuntu, the best way to delete it completely is by deleting the directory into which you have unpacked it and the .PyCharmx.x directory.

Shikhar Omar
  • 354
  • 2
  • 7
4

if you have installed using ./pycharm.sh then

press ctrl+H to see the hidden folders in Home then go to .config then JetBrains there you delete the PyCharm folder

Now you can reinstall pycharm or enjoy your pycharm free PC :-)

Adarsh
  • 116
  • 6
2

In Ubuntu you can do

  1. sudo rm -rf ~/.config/JetBrains/PyCharm*
  2. sudo rm -rf ~/.java/.userPrefs/jetbrains/
sahasrara62
  • 10,069
  • 3
  • 29
  • 44
1

Open terminal (shortcut: Ctrl+Alt+T) in your ubuntu system and try this command:

sudo snap remove pycharm-community
Jan Schultke
  • 17,446
  • 6
  • 47
  • 96
1

I see some of the answers pointing to ~/Library/* locations which I don't have by default in Ubuntu (specifically 18.04 Bionic Beaver), and maybe pertinent to MacOS systems.

For Ubuntu, here's my list of commands (for a standalone installation):

1. Delete the main app (snap|toolbox app|standalone) **see snap uninstallation cmds above)

# Clear caches and remnant files:
2. Remove the following dirs:
${HOME}/.config/JetBrains/<product><version>
${HOME}/.cache/JetBrains/<product><version>
${HOME}/.local/share/JetBrains/<product><version>
${HOME}/.java/.userPrefs/jetbrains/*

Example:

~/.config/JetBrains/PyCharm2021.3
~/.cache/JetBrains/PyCharm2021.3
~/.local/share/JetBrains/PyCharm2021.3
John Doe
  • 2,173
  • 1
  • 21
  • 12
0

Maybe, is a little convenience to leave this hidden file for update "major" installation: for example, since PyCharm Community Edition 2.4 to 2.6, I found this in home directory: PyCharmCE2018.2; the installer suggests use (default) or ignore.

ildgz
  • 1
0

open your terminal as common user

  1. $rm -d -r ~/.PyCharm2019.3

run same command as root user

  1. $sudo su
  2. $rm -d -r ~/.PyCharm2019.3

note PyCharm2019.3 replaced with your PyCharm version

David Buck
  • 3,752
  • 35
  • 31
  • 35
pavan
  • 1
0

You can follow their official documentation, they've mentioned the proper way to Uninstall PyCharm depends on the method you used to install it.

Kushan Gunasekera
  • 7,268
  • 6
  • 44
  • 58