If you sell the vehicle
Use the V5C log book to tell DVLA about the change of keeper. Keep the new keeper’s details and confirmation for your records.
If the vehicle is scrapped
Use an authorised treatment facility and follow the DVLA instructions for a vehicle that has been scrapped. Do not assume a sale to a trader is the same as scrapping.
This is general information, not legal or financial advice. Check GOV.UK or ask a qualified adviser about your situation.