How to remove project in PyCharm?

2020-05-19 03:42发布

If I'm closing a project and then just delete the project folder, after PyCharm restarts an empty project folder is created again.

10条回答
霸刀☆藐视天下
2楼-- · 2020-05-19 04:12

In PyCharm 2018 I finally had to resort to deleting .idea folder and the project went away.

查看更多
干净又极端
3楼-- · 2020-05-19 04:15

If you want to remove the project from the recent projects list, just highlight the project with your mouse and hit the del key.

查看更多
▲ chillily
4楼-- · 2020-05-19 04:19

In version 2017.2.1

File -> close project

You will be taken to the start up window, where you can see the projects you've created on the left. You can then delete a project by clicking the cross sign('x') following the project name.

查看更多
【Aperson】
5楼-- · 2020-05-19 04:20

This is for PyCharm 2019.1, but I can bet this will work in previous versions.

I am assuming you are in a Unix based operating system (macOs or any Linux distribution). I am also assuming you have currently opened the project you want to remove.

  1. Close the project by going to File -> Close Project

enter image description here

  1. Remove the project from Pycharm's Welcome Window

enter image description here

  1. Locate your project and delete it, you can use several alternatives, but I encourage you to use the following
$ rm -rf /path/to/your/project/directory

The previous command will work in macOS and Linux. In Windows, you can delete it manually by locating the projects directory using File Explorer.

That's it, the project has been completely deleted!

查看更多
登录 后发表回答