(delete-file f & [silently])
Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently.
Source
(defn delete-file
"Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently."
{:added "1.2"}
[f & [silently]]
(or (.delete (file f))
silently
(throw (java.io.IOException. (str "Couldn't delete " f)))))