There are a lot of different tabs plugins but I'm guessing you're using the jquery UI tabs? You should try using firefox w/ firebug, and take a look at the classes the tabs are given when they are selected / hidden (or read the docs on that plugin as they should have that info as well). I don't remember what they are.
Basically however you'd do something like this: $ (selector_for_all_hidden_tabs).remove([selector_for_what_you_want_to_remove]). So for example, if your hidden tab class was "hidden-tab" and you had a div in there id'd "content" which contained all your content, I believe you'd use the following: $(".hidden-tab").remove("#content");