how can i purge libraries while passing from a version to an other?