How can IntelliJ idea completely delete a project

step1.
Use IDEA to open the project to be deleted, right-click on the project file and select Remove Module, or press Delete

step2.
A delete prompt will pop up, “Remove Module ‘XXX’ from the project?No files will be deleted. “
means that the specified module is removed, but No files have been deleted. That is, the module has been removed and the files on disk are still there

After clicking “OK”, you can see that there are still some files in the list, which are files outside of the module. The above deleted files are only the module of the project

step3.
You can right-click on the file and select Show in Explorer to quickly open the file on disk at the location
or you can manually find the project at the location on disk

After opening the disk directory, you can see that the project files are all there, one or more
IDEA deletion is logical deletion, files on the disk need to be deleted manually by yourself

step4.
Select the File menu of IDEA and select Close Project to Close the Project before manually deleting the File

The welcome home page of IDEA will then appear. Place the mouse over the item to be deleted, and you will see the “× delete” button in the upper right corner. Click delete

step5.
Finally, manually delete the project file on the disk, to this project file can be completely deleted clean!
be careful when manually deleting files on your disk to prevent the files from being unrecoverable.
is deleted in IDEA. If you still want it, you can open it again.


Read More: