added delete team failsafe on index