2

I have a function called read-csv that I created.

I started using the package cl-csv that also has this function.

After renaming my function, I notice that read-csv is still part of my image.

(do-symbols (sym :my-package)
         (print sym)) ;; => includes read-csv

The same is true with variables.

If I define this:


(defparameter hi "Buongiorno")

;;change my mind and recompile
(defparameter hi-there "Buongiorno")


> hi
"Buongiorno"  ;;<---- still exists

> hi-there
"Buongiorno"

How do I completely remove a symbol, variable or function from my lisp image?

Vinn
  • 1,030
  • 5
  • 13
  • + [Is it possible in Lisp to undefine Macros and Functions?](https://stackoverflow.com/questions/22028969/is-it-possible-in-lisp-to-undefine-macros-and-functions) – Martin Půda Dec 03 '22 at 08:03

1 Answers1

4

(makunbound 'hi)

(fmakunbound 'read-csv)

CL-USER
  • 715
  • 3
  • 9