I tried adding this code to interactively clear the echo area (or mini-buffer not sure??) during Vertico's find-file.
(defun my-kill-line ()
"Remove text from the echo area by killing backwards"
(interactive)
(kill-line 0))
(keymap-set vertico-map "C-M-g" 'my-kill-line)
Emacs 29.1 says C-M-g
undefined when I try to use it.
I put both expressions in vertico.el
near the top and ran M-x eval-buffer
.