Manual:CleanupPreferences.php

Details
cleanupPreferences.php file is a 2>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to delete user preference values which are hidden by , or those that are unknown (e.g. were added by a since-uninstalled extension).

It contains the  hook.