sheidaei
sheidaei

Reputation: 10332

How to delete projects in IntelliJ 12?

I created some dummy projects. Now I don't see any way to delete the projects that I don't want. Per this suggestion I can delete files, the project is going away but there is traces of it still available. For example, on the Recent Projects you can still see the name of the project you just deleted. So I am thinking there should be another (and really easy way) to delete a project.

Upvotes: 121

Views: 91676

Answers (10)

drumaddict
drumaddict

Reputation: 121

In my case, I had to delete home/.IntelliJIdea2017.2/config/options/recentProjects.xml . In my file system (Ubuntu) this file appeared for some weird reason not writable and hold a list of projects I couldn't get rid of. Deleting this file and restarting will force Intellij IDEA to create a new one with an empty list of projects.

Upvotes: 0

Corinn Clark
Corinn Clark

Reputation: 91

On occasion, even with deletion of the project, some tidbits are left behind in the following Windows paths:

  • C:\Users\username.domain\.IntelliJIdea2017.1\system\compiler
  • C:\Users\username.domain\.IntelliJIdea2017.1\system\compile-server
  • C:\Users\username.domain\.IntelliJIdea2017.1\system\frameworks\detection
  • C:\Users\username.domain\.IntelliJIdea2017.1\system\conversion
  • C:\Users\username.domain\.IntelliJIdea2017.1\config\componentVersions
  • C:\Users\username.domain\.IntelliJIdea2017.1\config\tasks

This has been proven to be problematic - for example, if a new project is created using a previously deleted project name, it will create the project with data stored in the above paths, at least, this has been my experience.

The only way to TRULY delete the project is to get rid of all the garbage left behind in the aforementioned folders. I would suggest using Search Everything to find more tidbits left in the users temp folders.

Upvotes: 9

Kokizzu
Kokizzu

Reputation: 26848

close project first, or until this dialog appear, then hover your mouse on project you want to delete from history, then press Del main dialog

you'll be asked for confirmation

confirm

Upvotes: 14

THX1137
THX1137

Reputation: 973

On OSX Mountain Lion and IDEA 14, with the project open and focused, you can go to file -> close project, then delete the project from your filesystem. This removed all references to the project.

Note that if the project you are deleting is the only project open, closing it will show the welcome dialog, which will still show the project. Deleting the project manually from within your operating system is the next step, and the project will still appear in the welcome dialog until it is closed and shown again, usually by opening another project from the list, or quitting and restarting IDEA.

Upvotes: 1

YevPro
YevPro

Reputation: 21

Also, in IDEA 13.x.x you can go File-> Close Project and you'll land in the window with Recent Projects tab. There pressing Del of Fn + Del on selected project helps .

Upvotes: 2

DevOnix
DevOnix

Reputation: 21

All you have to do is go to file - close project - to avoid seeing them again in the menu list and then you delete them from the projects directory.

Upvotes: -1

Vasan Ramani
Vasan Ramani

Reputation: 302

Just figured, I am using Idea Community edition 13.1.1 and the cleanest and easiest way is to go to File > Reopen project > Clear List. I just stumbled upon this menu today. I always thought that is just to clear the latest projects from the view inside the IDE and just realized it is clearing the projects from the main Dialog too.

-VRS

Upvotes: 2

frankern
frankern

Reputation: 103

You can also click File -> Open project ...

When a file menu appears, you can right click the unwanted project folder and select Delete.

Upvotes: 3

CrazyCoder
CrazyCoder

Reputation: 402025

Press the Del (or fn and delete) key to delete a project from the Recent Projects list.

Vote for this issue to make it more obvious and user friendly.

Upvotes: 274

dvtoever
dvtoever

Reputation: 3996

In case your project is imported as a module, you can also go to File --> Project Structure and click 'Modules' in the left section. Now you can hit the minus button to remote the module from the project.

Upvotes: 3

Related Questions