Removes obsolete modules