can't remove js from page I've looked at this post https://stackoverflow.com/questions/9578013/how-to-unset-a-js-file-from-a-drupal6-installation-doesn%C2%B4t-work-with-remove-sc and this one How can I remove Javascript files?

and I've tried to duplicated it, but it wont work. I am trying to unset the regular jquery version. I've added this inside my phptemplate_preprocess_page function:


$js = drupal_add_js();
  unset($js['core']['misc/jquery.js']);
  $vars['scripts'] = $js;


when I print out $vars, it looks like it worked, but the original jquery is still included!
I can think of 4 things to check in this case, in order of likelihood:


What does the preprocess function stub look like?  Are you using the variable &amp;$vars there, too, or are you using &amp;$variables instead (which is how it appears in the documentation)?  They, of course, have to match.
Have you cleared your cache?  D6 was bad about sometimes needing the cache to be cleared twice.
Is the function actually running?  If not, then there may be a problem with the function name that it is not being recognized, or that the cache has not been cleared (which should be taken care of by checking #2).
Is something messing with the variable afterwards that is inadvertently re-adding the core js file?