Improved team in table deletion. Clean code.