1] Did the DB also get cleaned up? Otherwise, I don't see why repo is not there.
2] If ranger service is deleted, plugin should have been disabled also, so that it does not try to communicate to ranger.
3] After ranger is added again, if using the same DB, repo should be there. If using diff. DB, it should get created when hive plugin is enabled again and hive is restarted