Function: projectile-remove-project-type

projectile-remove-project-type is a byte-compiled function defined in projectile.el.

Signature

(projectile-remove-project-type PROJECT-TYPE)

Documentation

Remove PROJECT-TYPE from the list of registered project types.

This is the supported way to stop Projectile from auto-detecting a project type. Clearing the type's marker files instead does not work: an empty marker set is vacuously satisfied, so the type would match every project rather than none.

Raise an error if PROJECT-TYPE is not currently registered. The project type cache is reset so the change takes effect immediately.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-remove-project-type (project-type)
  "Remove PROJECT-TYPE from the list of registered project types.

This is the supported way to stop Projectile from auto-detecting a
project type.  Clearing the type's marker files instead does not work:
an empty marker set is vacuously satisfied, so the type would match
every project rather than none.

Raise an error if PROJECT-TYPE is not currently registered.  The project
type cache is reset so the change takes effect immediately."
  (unless (seq-find (lambda (p) (eq project-type (car p)))
                    projectile-project-types)
    (error "No existing project found for: %s" project-type))
  (setq projectile-project-types
        (seq-remove (lambda (p) (eq project-type (car p)))
                    projectile-project-types))
  (setq projectile-project-type-cache (make-hash-table :test 'equal)))