Re:GDPR guide for developers
by closeparen on Thursday June 18, 2020 @01:18PM
(#23565277)
As the chart explains, only public interest and legal requirement trump the right to erasure. Legitimate interest does not.
A legal requirement is "you shall retain these data for N years or face prison time" not "this might be helpful in a lawsuit"
The legal basis is actually quite broad. For example, most companies need to keep records for accounting purposes for several years which would count as a lawful basis. Another example would be keeping client data in case you need to protect yourself against potential future litigation e.g. a gym may need to protect themselves against personal injury claims (otherwise you could injure yourself, ask them to delete the records and then sue them).