How long to keep vehicle docs?

As I understand it for operator licence purposes at 15 months after you sold that vehicle you need to have no maintenance records for it in your possession. Obviously you can dispose of them gradually from month one after you have sold it if you wanted to.
As someone above pointed out you might have some other contractual / legal reason to keep them though.