I like to call :clear-history on panes with a huge scrollback. However, I want to script a way to send this command to all the panes in the various windows.
:clear-history
Have you tried following in tmux window with multiple panes
Ctrl-B : setw synchronize-panes on clear history