Manual:CleanupPreferences.php

cleanupPreferences.php is a maintenance script located in the maintenance directory that can be used to remove those user preferences, which are hidden by $wgHiddenPrefs, from the database.

Usage
php cleanupPreferences.php