I am currently trying to delete a SMS from the SMS table from android.
I used this to delete the SMS but there are errors.
Is this the correct syntax?
the messageID is the id of the message to be deleted.
Uri uriSMSURI = Uri.parse("content://sms/inbox/" + messageID);
getContentResolver().delete(uriSMSURI, null, null);
for deleteing an sms you must add these permissions in AndroidManifest.xml:
URI’s for reading and deleting sms: