New function delete_team
Change cache.delete to delete_team