27

I have several projects defined, and when I run C-c p p, it will list all of the projects. Now I don't want a project and I have deleted the .projectile file under that project, but it still shows up. How do I delete it?

Community
  • 1
  • 1
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93

1 Answers1

47

The function projectile-remove-known-project prompts for a project to forget about. projectile-remove-current-project-from-known-projects removes the active project.

Known projects are stored in the file ~/.emacs.d/projectile-bookmarks.eld.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • 3
    Thanks! Addendum for Spacemacs users: I found the file under `~/.emacs.d/.cache/projectile-bookmarks.eld`. – agentofuser May 23 '18 at 22:19
  • The order of the entries of the list in this file changes all the time and really clutters up your git working tree, so I would not recommend this as a persistent mechanism for storing known projects as configuration! – salotz Mar 04 '20 at 19:18
  • 2
    On Doom Emacs, I found ~/.emacs.d/.local/cache/projectile.projects – Bruno Robert Jan 07 '21 at 13:13
  • Is it possible to change path for the ``projectile-bookmarks.eld` ? – alper Mar 27 '21 at 19:18
  • 1
    @alper, that should probably be a separate question but it looks like you can modify the variable `projectile-known-projects-file`. – ChrisGPT was on strike Mar 27 '21 at 19:37
  • @Chris please see https://emacs.stackexchange.com/questions/64159/how-to-change-projectile-bookmarks-eld-saving-path – alper Mar 28 '21 at 19:01