How to uninstall PyCharm on Mac

17106443:

  There is no one-click uninstaller for PyCharm under the Mac system, and there is no plug-in for complete uninstallation. To completely delete it, in addition to deleting PyCharm in the application (Application) and placing it in the trash, you also need to delete the corresponding files and files in the Terminal (Terminal). folder.


1卸载列表
	1.1删除应用程序文件
	1.2删除应用支持文件
	1.3删除偏好设置数据
	1.4删除缓存数据
	1.5删除日志数据
	1.6删除设置文件
	1.7删除程序状态文件
	1.8删除诊断及崩溃日志文件

Uninstall list

  Mac 下安装 PyCharm 时,很多文件会散落在不同的目录。卸载时,你只需要删除相应的目录及文件即可。下面我们列出了卸载 PyCharm 组件及对应的目录文件路径。

1.1 Delete application files

① Delete the PyCharm program itself. If multiple versions are not installed, just run the following command.

# 示例如下
# rm -r /Applications/PyCharm.app

② You can also right-click the PyCharm file in the interface application and delete it.

1.2 Delete application support files

Delete PyCharm specified version application data and plug-in data, etc.
If there is no PyCharm file in the following directory, you can ~/Library/Application Support/JetBrains/PyCharm{指定版本}/ operate in: this directory

# 删除 PyCharm 指定版本应用数据及插件数据等等
rm -r ~/Library/Application\ Support/PyCharm{
    
    指定版本}/
# 示例如下
# rm -r ~/Library/Application\ Support/PyCharm2018.2/

1.3 Deletion of preference data

Removes preferences related to a specific version of PyCharm.
If there is no PyCharm file in the following directory, you can ~/Library/Application Support/JetBrains/PyCharm{指定版本}/ operate in: this directory

# 删除 PyCharm 指定版本相关的偏好设置
rm -r ~/Library/Preferences/PyCharm{
    
    指定版本}/

# 示例如下
# rm -r ~/Library/Preferences/PyCharm2018.2/

1.4 Delete cached data

Delete cache data related to the specified version of PyCharm.
If there is no PyCharm file in the following directory, you can ~/Library/Application Support/JetBrains/PyCharm{指定版本}/ operate in: this directory

# 删除 PyCharm 指定版本相关的缓存数据
rm -r ~/Library/Caches/PyCharm{
    
    指定版本}/

# 示例如下
# rm -r ~/Library/Caches/PyCharm2018.2/

There is also a part of the cached data in the following path:
This directory 5ddepends on your own computer. Generally, there is only one wz42txg90b33bc450trxkg9r0000gnsimilar file in this directory and then you can search it recursively.

rm -r /private/var/folders/5d/wz42txg90b33bc450trxkg9r0000gn/C/com.jetbrains.pycharm

1.5 Delete log data

Delete the logs generated when the specified version of PyCharm is run.

# 删除 PyCharm 指定版本运行时,产生的日志
rm -r ~/Library/Logs/PyCharm{
    
    指定版本}/

# 示例如下
# rm -r ~/Library/Logs/PyCharm2018.2/

1.6 Delete settings file

The setting files are all in /Library/Preferencesthe directory, as follows:

# 删除当前 PyCharm 设置文件
rm -r ~/Library/Preferences/com.jetbrains.pycharm.plist

1.7 Delete program status files

# 删除当前 PyCharm 状态目录
rm -r ~/Library/Saved\ Application\ State/com.jetbrains.pycharm.savedState/

1.8 Delete diagnostic and crash log files

The diagnostic logs of the application are placed /Library/Logs/DiagnosticReportsunder the path. The pycharm program is similar to the following:

# 删除 PyCharm 崩溃日志
# 前缀匹配一次性删除即可
rm -r /Library/Logs/DiagnosticReports/pycharm*

There will also be some crash logs in the following path:

# 类似如下的崩溃日志记录
rm -r ~/Library/Application\ Support/CrashReporter/pycharm*

Guess you like

Origin blog.csdn.net/m0_49447718/article/details/132582950