Change of ownership
When you sell to a wrecker, the sale is notified to Waka Kotahi like any other sale.
Licence refunds
If you have time left on the vehicle licence, you may be able to apply to Waka Kotahi for a refund of the unused portion. Check their site for current rules.
Plates
Ask the wrecker how plates are handled.