encryption – How to encrypt deleted data on Android 10

You cannot encrypt data which has been deleted. As Tetsujin mentioned, you are meant to encrypt the data beforehand. You can then discard the encryption key.

What you want to accomplish, then—ensure that cleartext deleted data be unrecoverable—is inherently difficult. It’s not trivial to hide these things from experienced forensic laboratories.

That said, unless you are trying to protect your data against an adversary such as a nation state, there are steps you can take. Re-encrypt your phone now and, after ensuring that data encryption is enable, initiate a full wipe. This should render apps like DiskDigger ineffective.