fixed the issue. Will look into that further You can use S. It clears the line, then puts you into insert mode. If you don't want to do insert mode, 0D will be the quickest command set. As glts mentioned, you can create a custom mapping by running one of the following commands. The first argument (S/D) can be changed to whatever you'd like.
:nnoremap S S<Esc>
:nnoremap D 0D
VS Code: what is the keyboard short cut to clear debug console