Wouldn't it be possible to just delete the 'idetifiabel' parts in the database in order to be GDPR compliant?
If you for instance save all the user data like user preferences under a random userId, and then delete the personal data (such as email address, name etc.) associated with the userId I would expect this to be GDPR complaint without having to do a cascading delete.