code: @Override
      public int onDelete(T helper, SQLiteDatabase db, MatcherPattern target, DeleteParameters parameter) {
          int result = -1;
  
          switch (target.getMimeTypeVnd().getSubType()) {
              case DIRECTORY:
                  result = db.delete(target.getTableInfo().getName(), parameter.getSelection(),
                      parameter.getSelectionArgs());
                  break;
  
              case ITEM:
                  String where = target.getTableInfo().getIdColumnInfo().getColumnName() + "="
                      + parameter.getUri().getPathSegments().get(1);
                  if (parameter.getSelection() != null && parameter.getSelection().length() >= 1) {
                      where += " AND ( " + parameter.getSelection() + " ) ";
                  }
                  result = db.delete(target.getTableInfo().getName(), where, parameter.getSelectionArgs());
                  break;
  
              default:
                  break;
          }
          return result;
      }
docs: /*
  @see
  com.tojc.ormlite.android.OrmLiteDefaultContentProvider#onDelete(com.j256
  .ormlite.android. apptools.OrmLiteSqliteOpenHelper,
  com.tojc.ormlite.android.framework.MatcherPattern,
  com.tojc.ormlite.android.framework.OperationParameters.DeleteParameters)