So you must delete them and also keep them.
This sounds like the Investigatory Powers Act in the UK, though I haven't heard of similar laws in other liberal democracies.
So you must delete them and also keep them.