I’m trying to delete all contacts by a determinated group.
I’ve created the group with GROUP_ROW_ID = 987
So I should delete contacts with GROUP_ROW_ID = 987!
I don’t know how to delete them.
Can anyone help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you haven’t solved it yet this is how I do it. By no means do I suggest this is an effective solution. This is just the straight forward solution.
First find all contact-ids having a specific group id. Then creating a
ContentProviderOperationfor each contact to be deleted, and last apply the list of delete operations.