if you're trying to clearall on all channels, does:
/clearall -n work for you?
From the help file:
/clearall [-snqmtgua]
Clears the buffers of the specified windows, where s = status, n = channel, q = query, m = message window, t = chat, g = finger, u = custom, a = all windows on all connections.