graphdb/src/main/java/com/orientechnologies/orient/graph/sql/OCommandExecutorSQLDeleteEdge.java
public boolean result(final Object iRecord) {
    final OIdentifiable id = (OIdentifiable) iRecord;

    if (compiledFilter != null) {
      // ADDITIONAL FILTERING
      if (!(Boolean) compiledFilter.evaluate(id.getRecord(), null, context))
        return true;
    }

    if (id.getIdentity().isValid()) {
      final OrientBaseGraph g = currentGraph.get();

      final OrientEdge e = g.getEdge(id);

      if (e != null) {
        e.remove();

        if (!txAlreadyBegun && batch > 0 && (removed + 1) % batch == 0) {
          if (g instanceof OrientGraph) {
            g.commit();
            ((OrientGraph) g).begin();
          }
        }

        removed++;
      }
    }

    return true;
  }
public boolean result(final Object iRecord) {
    final OIdentifiable id = (OIdentifiable) iRecord;

    if (compiledFilter != null) {
      // ADDITIONAL FILTERING
      if (!(Boolean) compiledFilter.evaluate(id.getRecord(), null, context))
        return true;
    }

    if (id.getIdentity().isValid()) {
      final OrientBaseGraph g = currentGraph.get();

      final OrientEdge e = g.getEdge(id);

      if (e != null) {
        e.remove();

        if (!txAlreadyBegun && batch > 0 && (removed + 1) % batch == 0) {
          if (g instanceof OrientGraph) {
            g.commit();
            ((OrientGraph) g).begin();
          }
        }

        removed++;
      }
    }

    return true;
  }
Delete the current edge.