Deleting (Raw) Contacts in Android 2.x

As wiseideal already mentioned the way you delete your rawcontacts will only set the "deleted"-flag to 1.

What you need to do is to set the caller_is_syncadapter-flag in your URI to true like this:

RawContacts.CONTENT_URI.buildUpon().appendQueryParameter(ContactsContract.CALLER_IS_SYNCADAPTER, "true").build()

And then use this new URI to call the delete-method:

int deletedRawContacts = context.getContentResolver().delete(RawContacts.CONTENT_URI.buildUpon().appendQueryParameter(ContactsContract.CALLER_IS_SYNCADAPTER, "true").build(), ContactsContract.RawContacts._ID + " >= ?", new String[]{"0"});

The corresponding part in the documentation is here (Operations->delete).

Hope this helps and happy coding :)