Fixes #5255 - Version destroy plan takes 20+ minutes

Removing before_destroy hook and package orphan code from clear_packages_index.