Removes the namespace named by the symbol. Use with caution.
Cannot be used to remove the clojure namespace.
;; Let's create a namespace and the remove it user=> (create-ns 'my-new-namespace) #<Namespace my-new-namespace> ;; removing a namespace will give you the namespace you just deleted, if one existed user=> (remove-ns 'my-new-namespace) #<Namespace my-new-namespace> ;; removing a namespace that does not exist, will tell you that nothing was removed, ;; by returning nill, and won't give any errors user=> (remove-ns 'my-new-namespace) nil
(defn remove-ns
"Removes the namespace named by the symbol. Use with caution.
Cannot be used to remove the clojure namespace."
{:added "1.0"}
[sym] (clojure.lang.Namespace/remove sym))
Comments top
No comments for remove-ns. Log in to add a comment.