API RemoveChatWindowChannel

Blocks further messages from a specified chat channel from appearing in a specific chat frame. RemoveChatWindowChannel(windowId, "channelName");

Arguments

 * windowId : Number - index of the chat window/frame (ascending from 1) to remove the channel from.
 * channelName : String - name of the chat channel to remove from the frame.

Details
ChatFrame_RemoveChannel(ChatWindow1, "Trade"); -- DEFAULT_CHAT_FRAME works well, too
 * Chat output architecture has changed since release; calling this function alone is no longer sufficient to block a channel from a particular frame in the default UI. Use (chatFrame, "channelName") instead, like so: