Java tutorial
//package com.java2s; import android.database.sqlite.SQLiteDatabase; public class Main { public static void resetAutoIncrement(SQLiteDatabase db, String name) { String[] whereArgs = { name }; db.delete("sqlite_sequence", "name = ?", whereArgs); } public static int delete(SQLiteDatabase db, String name, int id) { String[] whereArgs = { String.valueOf(id) }; return db.delete(name, "id = ?", whereArgs); } }