team deletion properly implemented