I have been struggling for hours trying to debug why the following delete query actually didn\'t delete anything even if the exact same query on the exact same database work
A rawQuery returns a Cursor of a result set, which is just a reference to the query results. You should just be using a straight delete() call. Take a look at the documentation:
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html
or an SQLiteStatement:
http://developer.android.com/reference/android/database/sqlite/SQLiteStatement.html