How to cancel car registration?

1st: the car must be yours and registered in your name.

2nd, Sell it...., the new owner will register it in his name, so your registration shall be cancelled automatically.