code: public Object execute(final Map<Object, Object> iArgs) {
      if (records.isEmpty())
        throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");
  
      final ODatabaseRecord database = getDatabase();
      for (String rec : records) {
        try {
          final ORecordId rid = new ORecordId(rec);
          database.getStorage().deleteRecord(rid, -1, 0, null);
        } catch (Throwable e) {
          throw new OCommandExecutionException("Error on executing command", e);
        }
      }
  
      return records.size();
    }
docs: Execute the command.