Projectile: How to remove a project from cache?

Created on 4 May 2013  Â·  3Comments  Â·  Source: bbatsov/projectile

For example: there are 3 projects e:/proj1, e:/proj2 e:/proj3 in projectile's cache file.

And e:/proj3 is removed for some resean. How can I remove it form projectiles project list?

Thanks.

Most helpful comment

At least in v. 20180116.9, you can remove unexisting projects with projectile-cleanup-known-projects:

projectile-cleanup-known-projects is an interactive autoloaded compiled Lisp
function in ‘projectile.el’.

(projectile-cleanup-known-projects)

Remove known projects that don’t exist anymore.

[back]

All 3 comments

You can always edit .projectile-cache manually, but I guess that's not pretty efficient. I'll add a prefix argument to projectile-invalidate-cache that would prompt for the project whose cache to invalidate.

This invalidates the one cache but AFAICT still doesn't remove it from the list you get when you press C-c p p. At least it doesn't without my having restarted emacs. I tried running M-x projectile-cleanup-known-projects after and my project still stays in the list.

At least in v. 20180116.9, you can remove unexisting projects with projectile-cleanup-known-projects:

projectile-cleanup-known-projects is an interactive autoloaded compiled Lisp
function in ‘projectile.el’.

(projectile-cleanup-known-projects)

Remove known projects that don’t exist anymore.

[back]
Was this page helpful?
0 / 5 - 0 ratings