yes i got the answer... it will be helpful for other stack flow user's :D :)
public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int arg2,long arg3) {
ArrayAdapter <String> adapter = new ArrayAdapter<String>
(menu.this,android.R.layout.simple_list_item_1,data);
Cursor cursor2=mydb1.rawQuery("SELECT * FROM notes;", null);
data.remove(arg2);
lv.setAdapter(adapter);
cursor2.moveToPosition(arg2);
int id= cursor2.getInt(cursor2.getColumnIndex("id"));
mydb1.delete("notes", "id=?", new String[] {Integer.toString(id)});
return true ;
}