How to remove project in PyCharm?

2020-05-19 04:13发布

问题:

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

回答1:

Just follow these steps in order. They assume you currently have the project open in a PyCharm window:

  1. Close your project by clicking on File -> Close Project
  2. Locate your project in the PyCharm file directory
  3. Delete your project's directory

I agree that PyCharm's handling of what should be a very simple procedure is crappy. Maybe this will be improved in the future?



回答2:

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



回答3:

  1. click the project you want to remove.
  2. menu bar Edit-> Remove from Project View.


回答4:

Version 2017.2.1

  1. Press Alt+1 to bring the project pane, and make sure you're in Project view (not Project Files view).
  2. Select the desired project, and choose "Delete from project view" from the context menu (right click). You can also use Delete key.


回答5:

Works for Windows and MacOS.

  • File -- Open Recent -- Manage Projects
  • Cliek X to delete from Recent Projects
  • Delete local directory

According to https://www.youtube.com/watch?v=ksbmc0coO4k



回答6:

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

  1. Remove the project from Pycharm's Welcome Window

  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!



回答7:

Highlight the project with your mouse and hit the del key, which works for me.



回答8:

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



回答9:

I had the same issue. My solution was:

  1. Close project.
  2. Rename the folder you want to dissapear
  3. Open pycharm project. A dialog will be shown asking if you want Pycharm remove the folder. Answer: yes.

That is enough.



回答10:

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.