public void markRecordAsDeleted(int id) throws IOException {
    if (ApplicationManager.getApplication().isUnitTestMode()) {
      newFreeRecords.add(id);
    }
    // important! Do not add fileId to free list until restart
    connection.getRecords().setFlags(id, FREE_RECORD_FLAG);
    connection.markDirty();
  }
public void markRecordAsDeleted(int id)