The ban on diesel cars will only affect the production of new diesel vehicles from 2030 and not the sale of second-hand vehicles, so you can still sell your diesel car after this time. However, you may struggle to find a private buyer for a diesel vehicle after the ban.