Yup, happens all the time, big and large companies.
Years ago, I was the Finance guy for a company that was bought/merged with an offshore company. They asked me to stay on to run the US-subsidiary. (Fortunately, one of the Board members told me confidentially, that all ops were moving offshore, and long-term, there would be no US-sub.) So, I was a good soldier, and continued to cranking out reports and do the US and consolidated books.
Months later, the NJ HQ was down to just a few folks, mostly H1-B’s and me. Asked to present at a Board meeting; ss soon as the Board meeting concluded, I received a call from the offshore HQ and was told my “services are no longer required.” Well, ok, I’ll leave my travel receipts in the office for reimbursement, and return home (CA).
A week later, I received a call from my old NJ office. The offshore folks had flown to NJ for transition, and just figured out that they had little idea how to do US accounting, much less the accounting software (Quickbooks) and asked if I ‘could I help them out’. Uh, “your Chairman told me last week that ‘my services were no longer needed’, and that is an exact quote.”
Guys, I sent all the passwords in a secure file to the Chairman. After some professional discussion, and their offer to fly to CA, I said, ‘sure, I’d be happy to help for a daily contractor rate of $xx, paid in advance’. But they expected me to work for free. Uhh, ‘no, not gonna happen’.