Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

delete a project entirely from intellij idea  RSS feed

 
Robert Manley
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am using IntelliJ free version on a Mac Pro running Sierra.
As far as I have been able to find out by trial and error, the way to (maybe) delete a project in Java is to select the .iml file and go REFACTOR>SAFE DELETE.
However this still leaves remains of the project and I have to go back to OPEN RECENT  , reselect, and where is says "error loading project, cannot load module", select details>delete.
is this  correct? I really don't want to keep "Hello World" forever, and i have dozens of learning files I no longer need.
there must be a quicker way?
 
Tim Cooke
Sheriff
Posts: 3743
208
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to delete the entire project? Code and all? Or are you just trying to delete the IntelliJ metadata from your project and leave the project code intact?
 
Knute Snortum
Sheriff
Posts: 3830
91
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just right-click on the project and select Delete.  It asks me if I want to delete the entire folder and I click OK.  At least that's in my version (2016.3).
 
Pete Letkeman
Ranch Hand
Posts: 154
6
Android Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even on the IntelliJ support site the you are told to delete the files manually
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000194890-IntelliJ-IDEA-Community-Delete-Project

On Windows systems, by default, all of the projects are stored in a single root directory. I think that location is

However I could be wrong, but this web site is most likely correct
https://www.jetbrains.com/help/idea/accessing-default-settings.html

Before deleting files/directories, recognize that once you delete a directory/file it may be lost to the world forever, so do so with care.

Once you find the correct directory, you can delete the project directory (%HOMEPATH%\IdeaProjects\superApp2) providing you have the correct permissions and files are not open/in use.

With the directory for the project deleted, IntelliJ will still list the project when you open it up. However if you click on the project IntelliJ will say that it cannot find the project and remove it from the list

So for me I would go:
  • %HOMEPATH%\IdeaProjects\
  • see a listing of projects/directories/folders like:
  • helloworld
  • superApp1
  • superApp2

  • Then I delete "superApp2" directory and the next time I tried it open "superApp2" in IntelliJ it would be removed it from the recent project listing.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!