Removing script!!

Removing script!!


Hi all, i want to find a way to remove all the functions and variables
that the external script defines and loaded.
i try this jQuery('script[src*=test.js]').remove();
But it only remove the element from the DOM.