Zohaib Ijaz
Zohaib Ijaz

Reputation: 22885

Remove Pycharm completely , Ubuntu

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

Upvotes: 31

Views: 122481

Answers (14)

I use ubuntu and installed my app by snap. My pycharm was closing itself and closing other apps like spotify and google chrome. Reinstall can't help me. The answer from Adarsh helped me the most, thank you. One small addition is to copy the old folders.

My methodology for saving settings and application performance:

  1. Copy the old folder from .config and name it "old_pycharm"
  2. Install the new version and after installation, also copy the folder and name it "new_pycharm"
  3. After that, copy the first folder from old_pycharm to the .config folder with file replacement.
  4. Run pycharm, check that everything is correct working. Repeat points 3 and 4.
  5. If it doesn't work, then copy from the new_pycharm backup instead

Upvotes: 0

baponkar
baponkar

Reputation: 436

Try this

sudo snap remove pycharm-professional pycharm-community
sudo apt-get autoclean 
sudo apt-get autoremove

Upvotes: 15

John Doe
John Doe

Reputation: 2341

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

Upvotes: 2

sahasrara62
sahasrara62

Reputation: 11238

In Ubuntu you can do

  1. sudo rm -rf ~/.config/JetBrains/PyCharm*
  2. sudo rm -rf ~/.java/.userPrefs/jetbrains/

Upvotes: 2

Kushan Gunasekera
Kushan Gunasekera

Reputation: 8566

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

Upvotes: 1

BISHWESHWAR SHOME
BISHWESHWAR SHOME

Reputation: 21

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

sudo snap remove pycharm-community

Upvotes: 1

pavan
pavan

Reputation: 1

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

Upvotes: 0

Adarsh
Adarsh

Reputation: 116

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 :-)

Upvotes: 4

Rt.Tong
Rt.Tong

Reputation: 194

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

Upvotes: 9

ildgz
ildgz

Reputation: 1

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.

Upvotes: 0

Richie
Richie

Reputation: 4432

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.

Upvotes: 20

Edwin Lai
Edwin Lai

Reputation: 399

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.

Upvotes: 19

Shikhar Omar
Shikhar Omar

Reputation: 444

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.

Upvotes: 4

Nauman Tariq
Nauman Tariq

Reputation: 1410

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

Upvotes: 33

Related Questions