Function: forge-reset-database
forge-reset-database is an autoloaded, interactive and byte-compiled
function defined in forge-commands.el.
Signature
(forge-reset-database)
Documentation
Move the current database file to the trash.
This is useful after the database scheme has changed, which will happen a few times while the forge functionality is still under heavy development.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-commands.el
;;;###autoload
(defun forge-reset-database ()
"Move the current database file to the trash.
This is useful after the database scheme has changed, which will
happen a few times while the forge functionality is still under
heavy development."
(interactive)
(when (and (file-exists-p forge-database-file)
(yes-or-no-p "Really trash Forge's database file? "))
(when-let ((db (forge-db t)))
(emacsql-close db))
(delete-file forge-database-file t)
(forge-refresh-buffer)))