Can I leave PhD after two years to join a company? I'm from Africa. I came to the US three years ago to do my doctoral studies. Now, I am thinking of leaving my PhD, as I have found a two-year contract management job in Texas. Could you please advise me whether I should continue my PhD or join the company in Texas?
Can you quit a PhD? sure.
Can you stay in the US and take a job? probably not.
Unless you got into the US because of a family member or similar, your visa/status in the US is almost certainly tied to your PhD position. Unless your new employer is willing and able to sponsor you for a visa, quitting your PhD will likely mean having to leave the US.