How to delete projects in Intellij IDEA 14?
Intellij IdeaIntellij Idea Problem Overview
I only found how to delete projects in older versions of IDEA but still don't see the button in my IDEA 14. Did the Jetbrains guys implement this feature or do I still have to delete my project folders manually in file explorer?
Intellij Idea Solutions
Solution 1 - Intellij Idea
1. Choose project, right click, in context menu, choose Show in Explorer
(on Mac, select Reveal in Finder
).
2. Choose menu File \ Close Project
3. In Windows Explorer, press Del or Shift+Del for permanent delete.
4. At IntelliJ IDEA startup windows, hover cursor on old project name (what has been deleted) press Del for delelte.
Solution 2 - Intellij Idea
Deleting and Recreating a project with same name is tricky. If you try to follow above suggested steps and try to create a project with same name as the one you just deleted, you will run into error like
'C:/xxxxxx/pom.xml' already exists in VFS
Here is what I found would work.
- Remove module
- File -> Invalidate Cache (at this point the Intelli IDEA wants to restart)
- Close project
- Delete the folder form system explorer.
- Now you can create a project with same name as before.
Solution 3 - Intellij Idea
You will have to manually delete from the project explorer (your local machine hard drive), then delete the project in IntelliJ when it asks to re-open recent projects.
Solution 4 - Intellij Idea
In my strange case, Intellij remembers forever about my project even if I delete .iml
... Thus I did the following:
- Close project. Delete the
.iml
file. - Rename my project directory (say
my_proj
) tomy_proj_backup
. - (Possibly not needed) Open
my_proj_backup
in Intellij and close. - Create an empty directory called
my_proj
, and open it in Intellij. Then close it. - Remove the
my_proj
and movemy_proj_backup
back tomy_proj
. Then openmy_proj
in Intellij.
Then it happily forgot the old my_proj
:)