How to remove project in PyCharm?

107,482

Solution 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?

Solution 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.

Solution 3

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

     

  2. 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!

Solution 4

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

Solution 5

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.
Share:
107,482

Related videos on Youtube

user1685095
Author by

user1685095

Updated on July 05, 2022

Comments

  • user1685095
    user1685095 almost 2 years

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

  • memilanuk
    memilanuk almost 10 years
    Works great... but in case anyone from PyCharm/JetBrains is paying attention - this REALLY needs to be made better - a tool tip, a note at the bottom of the list, something anything!
  • haraprasadj
    haraprasadj over 9 years
    Had the same problem. After some trial and error realized that Del does not work for the first project in the list. For that one only File > Close is the option as mentioned above.
  • luc
    luc about 9 years
    On a Mac, delete project from recents list with the combination of the "fn" key and "Del" see forum.jetbrains.com/thread/PyCharm-1267
  • Ignacio Vazquez
    Ignacio Vazquez about 8 years
    File->Close project is not an option on pycharm 5. Pressing the delete on project selection works (without deleting files)
  • Gajendra D Ambi
    Gajendra D Ambi about 7 years
    I am on pycharm 2016.2.3 none of the below are working 1. left click on the project once and hit del 2. right click on the project has no remove option
  • Gajendra D Ambi
    Gajendra D Ambi about 7 years
    I am on pycharm 2016.2.3 none of the below are working 1. left click on the project once and hit del 2. right click on the project has no remove option
  • Arjun
    Arjun over 6 years
    @GajendraDAmbi please see if you selected the "project" and not the "project files". Both show a similar kind of view in the project windows. When you select "project", you can press delete to detach the project from.
  • Stevoisiak
    Stevoisiak over 6 years
    This will not delete the project. It only removes it from the Recent Projects menu.
  • Scipio
    Scipio about 6 years
    Have the same problem as GajendraDAmbi. File > Close Project has apparently been removed while hitting delete doesn't work for the first opened project. To get to a single project, I have to close all projects, open the desired project (which also opens other projects I had open) and then hit delete for other projects. Rather annoying.
  • James Gardiner
    James Gardiner about 5 years
    This should be the correct answer as your using pycharm to fix the problem, and not a hack.
  • Bob Stein
    Bob Stein almost 5 years
    I had to first remove the subproject from Settings | Project <my project> | Project Structure | Content Root. There was a little x on the right. Then I could "Remove it from project view."