https://github.com/theforeman/theforeman.org/pull/1285/files Thanks!
Thank you Lzap
These changes are now live on the Customer Portal: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5/html/upgrading_and_updating_red_hat_satellite/post_upgrade_tasks#reclaiming_database_space_after_an_upgrade Thanks, Melanie