Discussion in 'iOS Development' started by cybohemia, Jul 30, 2009.
Is it possible to programmatically delete text messages from within an app?
Yeah, open the SMS database and do it yourself.
It's not that easy. There are a bunch of triggers in sms.db (including delete_message which triggers when you try to delete a message from db). Those triggers make a call to some function read with flags as an argument. This function must be defined in your program. And I suspect that it does some binary operations with flags (field in message table).
So the dirty workaround will be dropping delete_message trigger, deleting a message and then setting up that trigger again.
Separate names with a comma.