This depends on your funder’s requirements.
Manchester Metropolitan University has a minimum retention period of 10 years since the date the data were last requested. However for some projects, including some funded by the Medical Research Council, the recommended minimum retention period is 20 years.
Check your funder's retention policy.
DCCs guide Five steps to decide what data to keep