It's not quite as you think. It's not certain that the Spy app data has as an internet preferential lane. I can guarantee you that it's quite the opposite, and often the best systems for spying were (or are) formed by a mixer between data transmission with text messages and the internet.
I will not dwell on explaining why texting is always a good method of transmission, because it is not the right forum for this purpose.
In any case, even before it was not possible to delete the messages, because the message database is located within the App that manages them and not in the operating system. So inaccessible.
Previously, however, it was possible to receive messages before the main message handling app. It was possible to decide whether the message could also be sent to other applications listening to messages.
To do this you had to put a higher number of priorities than the other Apps that accessed the message chain. And each App decided whether to return the message received to the rest of the chain or not.
Now the messages receive them first only the App set by the user as the main one. and can decide if others who are listening can receive it. Others can only read messages but do not prevent the rest of the chain from receiving them.
Apps like WhatsApp read messages to receive the activation code when first started.
Only the main messaging app can prevent others from reading a received message.