I'm not against this feature but I don't think it should be tied to escape.
Escape is often used to close out of windows or to bring up the settings, HUD, keybinds, etc. I can foresee myself accidentally deleting my chat logs if it were to be tied to escape.
Instead, I would propose allowing this to need a keybinding to execute, with the default having no assigned keybinds to it.
