I have tried
getContentResolver().delete(Uri.parse(\"content://sms/inbox/\" + id), null, null);
even
getConte
From Android 4.4 onward Only one app can delete , upgrade , block or do anything .so in order to work you have to set your app as default messaging app . For more information refer here Official android page on policy change
hope it helps ...