Java tutorial
//package com.java2s; import android.content.ContentUris; import android.content.Context; import android.net.Uri; public class Main { public static int deleteById(Context context, Uri uri, long id) { return context.getContentResolver().delete(ContentUris.withAppendedId(uri, id), null, null); } public static int delete(Context context, Uri uri, String where) { return context.getContentResolver().delete(uri, where, null); } }