How long do I need to keep records for?

HMRC rules state that all limited companies, whether trading or not, must keep accounting records for at least 6 years plus the current year.