moved erase_registrations to packages
added erase_registrations for ba