Earlier quoted context omitted.
>If you're running things yourself and control the encryption keys required to access your data, then your service provider can't be compelled to release your data as it's not possible The court can just hold you in contempt until you do[1]. They also probably won't buy "I forgot". [1]: https://arstechnica.com/tech-policy/2016/04/child-porn-suspe...
If you delete the data, prior to getting the notice to produce the data and it wasn't deleted in anticipation of such a notice, sure the court could hold you in contempt, but legally you've done nothing wrong. You cannot easily make a third random third-party delete your data.
This is what a lot of people overlook - when the court compels you to produce evidence, or ill gotten gains, saying ,"I can't" - isn't a legal defense.