There are a few ways you can use to remove projects from PyCharm. In this tutorial, I’ll show you a few of them.
Let’s go through those steps in an example with pictures. The pictures used here are those of PyCharm 2022.2 Community Edition, but the approach of removing projects has been tested for PyCharm 2016 and later.
The following Figure shows a landing page when I open PyCharm. We need to take note of two things – the project name, and its location.
Click “File” on the navigation bar and “Close Project”.
After clicking “Close Project”, take note of the location of the project(s) you wish to delete.
If I want to remove “example_project2“, then its location is in my home directory (~) under the PyCharmProjects directory.
Note: By default, PyCharm saves its projects in the PyCharmProjects folder in the home directory. The home directory is located on “C:\Users\<username>” on Windows and “/home/<username>” on Linux.
Hover over the project you want to remove, right-click, and “Remove from Recent Projects”. That removes the project from the recents (the window in Step 2) but not the actual project.
You can now remove projects based on the path(s) established in step 2. In my case, two of my projects are located in the PyCharmProjects folder in the home directory, ~/PyCharmProjects/example_project1 and ~/PyCharmProjects/example_project2.
Removing the two projects entails deleting the folders. You can highlight the folders you want to remove and hit the “delete” key.
Alternatively, you can use the rm command on Linux or macOS. For example, I will execute the following command in the terminal to remove the “example_project1” project.
rm -rf ~/PyCharmProjects/example_project1