How to remove a project (from the workspace) in PHPStorm?

69,901

Solution 1

**Two Approaches for PHPSTORM 2018.3 Version **

A. Eternal Removal or Deletion from Hardware and Phpstorm IDE

  Please visit the folder 'PhpstormProjects' and delete the project file manually. If you do so, you will see the folder disappear from Phpstorm explore window. This might be weird, but true.

B. Remove from the recent project panel of Phpstorm 2018.3 (The folder after such removal will hide and a creation of the same name of project will restore the removed from the recent project panel.)

    1. Click  File > Close project 

    2. From Recent projects, select project, press the fn(on normal keyboard -       key between right Alt and Ctrl, not windows key)+Delete

Solution 2

Backspace did the trick for me (Windows 7 + PHPStorm 7.1.3). You might want to try Fn+Backspace as well.

Solution 3

I know this post is a little old, but for MAC OS X phpStorm 6*, on the welcome to JetBrains PhpStorm page (under the recent projects use arrow keys up/down to select the project you want to remove, the hold the fn+delete.

Cheers

Solution 4

  1. Click File > Close project
  2. From Recent projects, select project, press the Fn + Delete on your keyboard

If you want delete a project entirely, delete the ".idea" folder within the project under Finder. This folder is hidden by default (i:e that's because it starts with a dot "." ). You will need to enable "View Hidden Files/Folders" in Finder

Solution 5

For 2017/2018/2019/2020 versions, go to:

File->Open Recent->Manage Projects...

and click the X (that appears when hovering over an option) to delete it from the Projects list. This just removes the reference; it doesn't delete files from the disk.

Share:
69,901
automatix
Author by

automatix

Updated on September 11, 2020

Comments

  • automatix
    automatix over 3 years

    How can I delete (and not simply close) a project in PHPStorm?

  • MEM
    MEM over 10 years
    old FN+delete... how convenient. :s, anyway, thanks for sharing it.
  • Red2678
    Red2678 about 10 years
    FTW! Thanks, not sure why this is not marked as correct.
  • callumacrae
    callumacrae almost 10 years
    It's the keyboard shortcut for deleting stuff in PhpStorm. It's the same for deleting files. Also, this is really old now…
  • Topher Fangio
    Topher Fangio over 9 years
    On Windows 7/WebStorm 9, when you close the project and see the recent list, you can also hover your mouse over the project and hit the Backspace key and it will prompt you to delete it.
  • Gordon
    Gordon over 9 years
    I didn't need to press Fn. Just Delete.
  • Nic Wortel
    Nic Wortel over 9 years
    Note that you shouldn't click on the project (this opens it again), just hover your mouse over it and then press Delete or Backspace (just as Gordon, I didn't need to press Fn at the same time). I'm using PhpStorm 8 on Ubuntu 14.
  • rbaleksandar
    rbaleksandar about 9 years
    The fact that one has to google the information to do somethin as trivial as that says a lot about the editor itself, doesn't it?
  • prograhammer
    prograhammer almost 9 years
    @rbaleksandar How much have you used phpStorm? It's really great, commit a few weeks to it and you'll see.
  • user100487
    user100487 almost 9 years
    @rbaleksandar you are absolutely correct in what you are saying.
  • luqo33
    luqo33 almost 9 years
    Honestly, I do not think this is user-friendly.
  • toesslab
    toesslab over 8 years
    This should be the accepted answer because the .idea folder identifies a folder as a PhPStorm project folder. in Windows and Nix systems
  • Bobby S
    Bobby S over 5 years
    Thanks, this is the one I was looking for.
  • alexkb
    alexkb over 5 years
    This answer is especially applicable to the latest version of PHP Storm 2018.3 which now lets you attach a project to an existing project when you open a project. If you need to then detach the project, this answer is how you achieve this.
  • j-guyon
    j-guyon over 4 years
    Approved on 2019.3.2 - Mac OS, Thanks !
  • Nico Haase
    Nico Haase almost 4 years
    Have you tried to use the answer provided by jabbascript? That works perfectly for me, and "doesn't work" doesn't look like a legit answer to me then
  • Roman86
    Roman86 almost 4 years
    @NicoHaase you mean removing the project from the recent list (Manage Projects)? Yes, I tried. It does nothing to attached project. Attached project is different - it's when you go "File -> Attach Project...". After that you will see another project in the Project tab. And it just can't be removed out of there
  • Roman86
    Roman86 almost 4 years
    their documentation says same. I have no such menu item. And I can't find that action with actions lookup (Mac OS PhpStorm 2020.1)
  • Roman86
    Roman86 almost 4 years
    very strange. I saw that menu item, but only until I attach new project. Once attached - there's no such item anymore (to remove). Really weird =\
  • MonTea
    MonTea over 3 years
    Thanks, that helped me … you missed something - the folder is .idea not idea ;)