def postDeleteHook(cls, teams): ''' To run after the team has been deleted. ''' for team in teams: SearchHelper.remove_team_location_index(team)