Function: projectile-session-forget
projectile-session-forget is an autoloaded, interactive and
byte-compiled function defined in projectile.el.
Signature
(projectile-session-forget &optional PROJECT)
Documentation
Delete PROJECT's saved session file.
PROJECT defaults to the current project's root.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;###autoload
(defun projectile-session-forget (&optional project)
"Delete PROJECT's saved session file.
PROJECT defaults to the current project's root."
(interactive)
(let ((root (or project (projectile-project-root))))
(unless root
(user-error "Not in a project"))
(let ((file (projectile-session--file root)))
(when (file-exists-p file)
(delete-file file)
(when (called-interactively-p 'any)
(message "Forgot session for %s" root))))))