Manual:CleanupPreferences.php

Details
cleanupPreferences.php file is a maint-scripts>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.