GDPR How Long to Keep Customer Data

The GDPR does not set specific limits on data retention. It requires, that the period for which personal data is stored is no longer than necessary for the task performed. This requirement is essentially the same as the requirement under Principle 5 of the DPA.

General Data Protection Regulation (GDPR) Frequently Asked Questions pdf

As per the General Data Protection Regulation (GDPR), any personal data must not be kept any longer than it is necessary for the purpose for which the personal data is processed. This further means there is a time limit on how long customers’ data can be kept intact. Though there is no specified time limit.
Customers are always advised that you must store data for the shortest time possible. This time period should consider the reasons why your organisation needs to process the data, as well as any legal obligations to secure that data for a fixed period of time. For example: The National Labour, Tax or Anti-Fraud laws that need you to store the personal data about your employees for a specific period of time, product warranty duration, etc.
Your organization/company should fix certain time limits to clear or review the data stored.
The only exception is in the case, where personal data can be kept for a longer period of time is for archiving purposes in the public interest or for reasons of scientific or historical research, provided there is appropriate technical and organisational measures put in place. Your organisation should also make sure that the data held is accurate and kept up-to-date.