How to delete projects in Intellij IDEA 14?

Intellij Idea

Intellij 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).

enter image description here

2. Choose menu File \ Close Project

enter image description here

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.

enter image description here

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.

  1. Remove module
  2. File -> Invalidate Cache (at this point the Intelli IDEA wants to restart)
  3. Close project
  4. Delete the folder form system explorer.
  5. 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:

  1. Close project. Delete the .iml file.
  2. Rename my project directory (say my_proj) to my_proj_backup.
  3. (Possibly not needed) Open my_proj_backup in Intellij and close.
  4. Create an empty directory called my_proj, and open it in Intellij. Then close it.
  5. Remove the my_proj and move my_proj_backup back to my_proj. Then open my_proj in Intellij.

Then it happily forgot the old my_proj :)

Solution 5 - Intellij Idea

I am doing it manually in Intellij IDEA v2021.3.1, Ubuntu 20.04.

Steps:

  1. Select Project
  2. File > Close Project
  3. Right-click on project > Remove from Recent Projects enter image description here
  1. cd ~/IdeaProjects
  2. rm -fr ProjectDir

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionArthur EirichView Question on Stackoverflow
Solution 1 - Intellij IdeaJames GrahamView Answer on Stackoverflow
Solution 2 - Intellij IdeaAshburn RKView Answer on Stackoverflow
Solution 3 - Intellij IdeaAnshul AbhinavView Answer on Stackoverflow
Solution 4 - Intellij Ideach271828nView Answer on Stackoverflow
Solution 5 - Intellij Ideajumping_monkeyView Answer on Stackoverflow