code: private void executeDeletes()
          throws EFapsException
      {
          final AbstractDelete delete = (AbstractDelete) runnable;
          for (final Instance instance : delete.getInstances()) {
              final Context context = Context.getThreadContext();
              final ConnectionResource con = context.getConnectionResource();
              // first remove the storeresource, because the information needed
              // from the general
              // instance to actually delete will be removed in the second step
              Resource storeRsrc = null;
              try {
                  if (instance.getType().hasStore()) {
                      storeRsrc = context.getStoreResource(instance, Resource.StoreEvent.DELETE);
                      storeRsrc.delete();
                  }
              } finally {
                  if (storeRsrc != null && storeRsrc.isOpened()) {
                  }
              }
              try {
                  final List<DeleteDefintion> defs = new ArrayList<>();
                  defs.addAll(GeneralInstance.getDeleteDefintion(instance, con));
                  final SQLTable mainTable = instance.getType().getMainTable();
                  for (final SQLTable curTable : instance.getType().getTables()) {
                      if (!curTable.equals(mainTable) && !curTable.isReadOnly()) {
                          defs.add(new DeleteDefintion(curTable.getSqlTable(), curTable.getSqlColId(), instance.getId()));
                      }
                  }
                  defs.add(new DeleteDefintion(mainTable.getSqlTable(), mainTable.getSqlColId(), instance.getId()));
                  final SQLDelete sqlDelete = Context.getDbType().newDelete(defs.toArray(new DeleteDefintion[defs
                                  .size()]));
                  sqlDelete.execute(con);
                  AccessCache.registerUpdate(instance);
                  Queue.registerUpdate(instance);
              } catch (final SQLException e) {
                  throw new EFapsException(getClass(), "executeWithoutAccessCheck.SQLException", e, instance);
              }
          }
      }
docs: Execute the inserts.
  
  @throws EFapsException the e faps exception