Как удалить проект в PyCharm?
Если я закрываю проект, а затем просто удаляю папку проекта, то после того, как PyCharm снова запустит пустую папку проекта.
6 ответов
Просто выполните следующие действия. Они предполагают, что в настоящее время проект открыт в окне PyCharm:
- Закройте свой проект, щелкнув Файл → Закрыть проект
- Найдите свой проект в каталоге файлов PyCharm
- Удалить каталог проекта
Я согласен с тем, что обработка PyCharm, которая должна быть очень простой процедурой, является дрянной. Может быть, это будет улучшено в будущем?
Если вы хотите удалить проект из списка последних проектов, просто выделите проект мышью и нажмите клавишу del.
Open, reopen, and close projects
If you open your project for the very first time, you see the Welcome Screen. You can either open your project from the disk, or download it from the version control system.
Although PyCharm is intended to be used with projects, you can open individual files in LightEdit mode.
Opening a project
Open your project from disk
Do one of the following:
From the main menu, select File |Open .
On the Welcome Screen, click Open .
In the Open File or Project dialog that opens, find the location of the desired project directory. The PyCharm projects are marked with and projects created in other IDEs or in a dedicated editor are marked with .
If you select a non-PyCharm directory, PyCharm creates a new IDE project and sets up a Python interpreter.
Click Open (on Mac) or OK (on Windows).
Open a project from Git
Do one of the following:
On the Welcome Screen, click Get from Version Control .
From the main menu, select VCS | Get from Version Control .
Select the version control system where your project is stored. Here it is Git:
Specify the path to the repository and select the directory to which a project will be cloned. Alternatively, you can select GitHub on the left, login using your credentials, and select any project you want to work with.
Open a project from the command line
In the command prompt, type:
Once you have opened the project, you should configure Python interpreter for it, and set up your project.
If your project was previously configured with any interpreter that is not currently available, PyCharm shows a warning and provides two options: select an interpreter that fits the previous configuration or configure another Python interpreter:

![]()
Note, when you open a project configured for the outdated version of the Python interpreter, the following message appears: Click Configure Python interpreter to set up a valid one.
You can close a project that has been added to the currently opened one (primary project).
Managing multiple projects
PyCharm suggests the following alternatives to work with several projects simultaneously:
Each project is opened in its own window. The projects are independent and cannot share information, except for the Clipboard operations. All the projects run in the same instance of PyCharm and use the same memory space.
A newly opened project shares the same window as the already opened one. The project that has already been opened is considered the primary project, and is always shown first in the Project tool window. All the other projects are attached to the primary project. You can import classes and methods from dependent projects
Open multiple projects
Open a project, while another one is already opened.
Then, depending on the option selected in the Project section of the Appearance & Behavior | System Settings page of the Settings dialog ( Control+Alt+S ), PyCharm can ask you for the following alternatives:
If the New Window option is selected, the new project silently opens in a new window. The Attach option appears in the File menu.
If the This Window option is selected, the new project silently opens in the same window, replacing the currently opened project. The Attach Project command appears in the File menu.
If the Attach option is selected, PyCharm attaches the new project to the currently opened project. The project that has already been opened is the primary project .
Merge project windows (macOS)
On macOS, you can merge all opened project windows into one, turning them into tabs.
Make sure that there are several PyCharm projects opened in separate windows.
From the main menu, select Window | Merge All Project Windows .
Drag a project’s tab to work with the project in a separate window again.
Manage project dependencies
Press Control+Alt+S to open the IDE settings and select Project <project name> | Project Dependencies .
Select a project in the Projects pane , than select the checkboxes to the left of the names of the desired projects to add them as dependencies.
Use the arrow buttons to change the order of the dependent projects, in which they appear in the PYTHONPATH variable.
Some settings (such as Django, Google App Engine, template languages, Python interpreters, content roots) can be configured separately for each project.
You can close a project that has been added to the currently opened one (primary project).
Remove a project from view
In the Project tool window, right-click the project to be deleted.
From the context menu of the selection, choose Remove from Project View or press Delete :
When PyCharm starts, the most recent project reopens by default (unless this option is disabled on the System Settings page of the Settings dialog ( Control+Alt+S ).
Reopening recent projects
PyCharm keeps the history list of the recent projects, from which you can select the desired one.
When PyCharm starts, the most recent project reopens by default (unless this option is disabled on the System Settings page of the Settings dialog ( Control+Alt+S ).
Open a recent project
Call File | Recent Projects from the main menu and select the desired project from the list.
Note that the list also contains the projects that share one window.
Specify whether you want to open the project in a new window, reuse the current window, or attach it to the currently opened project.
On the Welcome screen, click Projects on the left-hand pane and then select the project of interest in the right-hand pane where the list of your recent projects is shown. Start typing in the Search projects field to filter the list of recent projects.
Closing projects
If you need to close only one project, you can either close the project window or select File | Close Project from the main menu.
If you work with multiple projects, use the following actions to close many projects at once:
Close all projects
From the main menu, select File | Close All Projects .
This action closes all projects that are currently opened in PyCharm.
Close all but the current project
From the main menu, select File | Close Other Projects .
This action closes all opened projects except the current one.
When you have only one open project and you close it, PyCharm displays the Welcome screen . In case of multiple projects, each one is closed with its frame.
Remove a project from the list of recent projects
Click Recent Projects on the File menu, then click Manage Projects at the very bottom of the recent project list.
Click the icon next the project that you want to remove.

The selected project will be removed from the list of recent projects in the Recent Projects menu and on the Welcome screen.
Switching between projects
To switch between open projects, you can use the following commands of the Window menu:
How to remove a project from Pycharm
- All categories
ChatGPT (11)
Apache Kafka (84)
Apache Spark (596)
Azure (145)
Big Data Hadoop (1,907)
Blockchain (1,673)
C# (141)
C++ (271)
Career Counselling (1,060)
Cloud Computing (3,469)
Cyber Security & Ethical Hacking (162)
Data Analytics (1,266)
Database (855)
Data Science (76)
DevOps & Agile (3,608)
Digital Marketing (111)
Events & Trending Topics (28)
IoT (Internet of Things) (387)
Java (1,247)
Kotlin (8)
Linux Administration (389)
Machine Learning (337)
MicroStrategy (6)
PMP (423)
Power BI (516)
Python (3,193)
RPA (650)
SalesForce (92)
Selenium (1,569)
Software Testing (56)
Tableau (608)
Talend (73)
TypeSript (124)
Web Development (3,002)
Ask us Anything! (66)
Others (2,231)
Mobile Development (395)
UI UX Design (24)
How to remove project in PyCharm?
If I’m closing a project and then just delete the project folder, after PyCharm restarts an empty project folder is created again.
12 Answers 12
Just follow these steps in order. They assume you currently have the project open in a PyCharm window:
- Close your project by clicking on File -> Close Project
- Locate your project in the PyCharm file directory
- 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?
If you want to remove the project from the recent projects list, just highlight the project with your mouse and hit the del key.
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.
Close the project by going to File → Close Project :

Remove the project from Pycharm’s Welcome Window:

- Locate your project and delete it, you can use several alternatives, but I encourage you to use the following
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!
![]()
- click the project you want to remove.
- menu bar Edit-> Remove from Project View.
- Press Alt+1 to bring the project pane, and make sure you’re in Project view (not Project Files view).
- Select the desired project, and choose «Delete from project view» from the context menu (right click). You can also use Delete key.
There is a difference between PyCharm projects and the list of recently opened projects (File → Open recent. ):
The PyCharm project is simply an arbitrary folder 1 with the appropriate .idea subfolder in it.
The list of recently opened projects is simply the list of paths to some of such folders.
PyCharm does not keep the list of all projects, so you may safely delete a project folder (or its .idea subfolder) from your file system.
But if you have a bad luck, the path to your project directory is already listed in the list of recently opened projects, and if you try opening it with File → Open recent. , then
in older version of PyCharm, the deleted folder is re-created (as a new folder with only the .idea subfolder in it),
in newer versions of PyCharm you get the prompt similar as
The path C:\Users\you\PycharmProjects\deleted_project does not exist.
If it is on a removable or network drive, please make sure that the drive is connected.
with buttons "OK" and "Remove From List", so you may simply remove the deleted folder from the list,
in all version of PyCharm, if you deleted only the .idea subfolder, it is silently re-created (but all your project settings are lost, of course).