delete function working to remove teams