Translations:Manual:CleanupEmptyCategories.php/28/en

You may want to use the throttling options if it's causing too much load; they will not affect correctness.