Remove the entity with the given identity from any state
496430
public function detach(Identity $identity): self
    {
        $this->states = $this->states->map(static function(
            State $state,
            MapInterface $entities
        ) use (
            $identity
        ) {
            return $entities->remove($identity);
        });

        return $this;
    }
1123762
public AlertEntityConditionService remove(Entity entity, long conditionId)
    {
        return remove(entity.getId(), entity.getType(), conditionId);
    }
703702
public void removeEntity(Entity entity){
		boolean delayed = updating || familyManager.notifying();
		entityManager.removeEntity(entity, delayed);
	}
912916
public ADDRESST unregisterParticipant(UUID entityID) {
		synchronized (mutex()) {
			removeListener(this.participants.get(entityID));
			return this.participants.remove(entityID);
		}
	}
33720
private void purge(State state) {
        StateSignature sig = state.getSignature();
        if (sig == null) {
            return;
        }
        if (state.getAcceptance() == Acceptance.TRUE) {
            throw new IllegalStateException("Attempting to purge accepting state");
        }
        if (register.remove(sig) == null) {
            return;
        }
        sig.acceptance = Acceptance.FALSE;
        for (int i = 0; i < alphabetSize; i++) {
            State succ = sig.successors.array[i];
            if (succ != null) {
                purge(succ);
            }
        }
    }
106539
public void remove(Identity oid)
    {
        //processQueue();
        if(oid != null)
        {
            removeTracedIdentity(oid);
            objectTable.remove(buildKey(oid));
            if(log.isDebugEnabled()) log.debug("Remove object " + oid);
        }
    }
896886
@Transactional
  @DeleteMapping("/{entityTypeId}/{id}")
  @ResponseStatus(NO_CONTENT)
  public void deleteDelete(
      @PathVariable("entityTypeId") String entityTypeId, @PathVariable("id") String untypedId) {
    delete(entityTypeId, untypedId);
  }
953184
public void delete(E e) {
        LOG.trace("Deleting " + entityClass.getSimpleName() + " with ID " + e.getId());
        getSession().delete(e);
    }
764219
private void deleteState(MutableState state) {
    if (state.getId() == this.start.getId()) {
      throw new IllegalArgumentException("Cannot delete start state.");
    }
    // we're going to "compact" all of the nulls out and remap state ids at the end
    this.states.set(state.getId(), null);
    if (isUsingStateSymbols()) {
      stateSymbols.remove(state.getId());
    }

    // this state won't be incoming to any of its arc's targets anymore
    for (MutableArc mutableArc : state.getArcs()) {
      mutableArc.getNextState().removeIncomingState(state);
    }

    // delete arc's with nextstate equal to stateid
    for (MutableState inState : state.getIncomingStates()) {
      Iterator<MutableArc> iter = inState.getArcs().iterator();
      while (iter.hasNext()) {
        MutableArc arc = iter.next();
        if (arc.getNextState() == state) {
          iter.remove();
        }
      }
    }
  }
1326792
private function resetCacheEntity()
    {
        if (null !== $this->_entity) {
            $this->_em->detach($this->_entity);
            $this->_entity = null;
        }
    }
254836
def remove_entity entity
      key = entity.to_sym
      Qipowl::ENTITIES.each { |section|
        next unless (curr_sect = self.class.const_get("#{section.upcase}_TAGS") rescue nil)
        curr_tag = send(:"∃_#{section}", key)
        next unless curr_tag

        curr_sect.delete key
        self.class.const_get("ENCLOSURES_TAGS").delete key
        self.class.const_get("ENTITIES")[section.to_sym].delete key

        self.class.class_eval %Q{
          remove_method :#{key.bowl}
        }
        @shadows = nil
      }
    end
1267145
def remove_unique_identity(cls, sh_db, uuid):
        
        success = False
        try:
            api.delete_unique_identity(sh_db, uuid)
            logger.debug("Unique identity %s deleted", uuid)
            success = True
        except Exception as e:
            logger.debug("Unique identity not deleted due to %s", str(e))

        return success
629516
def destroy_entitiy(self, entity):
        
        for relation in self._database.values():
            relation.pop(entity, None)
        for l in self._entities_by_component.values():
            l.discard(entity)
        self._entities.remove(entity)
838493
function _removeEmbed(state, id) {
  // get existing embed
  var embeds = state.embeds;
  var embed = embeds[id];
  var parent = embed.parent;
  var property = embed.property;

  // create reference to replace embed
  var subject = {'@id': id};

  // remove existing embed
  if(_isArray(parent)) {
    // replace subject with reference
    for(var i = 0; i < parent.length; ++i) {
      if(jsonld.compareValues(parent[i], subject)) {
        parent[i] = subject;
        break;
      }
    }
  }
  else {
    // replace subject with reference
    var useArray = _isArray(parent[property]);
    jsonld.removeValue(parent, property, subject, {propertyIsArray: useArray});
    jsonld.addValue(parent, property, subject, {propertyIsArray: useArray});
  }

  // recursively remove dependent dangling embeds
  var removeDependents = function(id) {
    // get embed keys as a separate array to enable deleting keys in map
    var ids = Object.keys(embeds);
    for(var i = 0; i < ids.length; ++i) {
      var next = ids[i];
      if(next in embeds && _isObject(embeds[next].parent) &&
        embeds[next].parent['@id'] === id) {
        delete embeds[next];
        removeDependents(next);
      }
    }
  };
  removeDependents(id);
}
548464
def remove(self):
        
        LOGGER.debug("InjectorUITreeEntity.remove")
        if self.id and InjectorUITreeService.find_ui_tree_entity(self.id) is not None:
            args = {'properties': {'OPERATION': 'UNREGISTER', 'TREE_MENU_ENTITY_ID': self.id}}
            result = InjectorUITreeService.requester.call(args).get()
            if result.rc != 0:
                err_msg = 'InjectorUITreeEntity.remove - Problem while saving injector UI Tree Menu Entity (id:' + \
                          self.id + '). ' + \
                          'Reason: ' + str(result.response_content) + '-' + str(result.error_message) + \
                          " (" + str(result.rc) + ")"
                LOGGER.warning(err_msg)
        else:
            err_msg = 'InjectorUITreeEntity.remove - Problem while removing injector UI Tree Menu Entity (id:' + \
                      self.id + '). ' + \
                      'Reason: id is null or injector UI Tree Menu Entity not found'
            LOGGER.warning(err_msg)
1242412
public void remove(Identity oid)
    {
        if(log.isDebugEnabled()) log.debug("Remove object " + oid);
        sessionCache.remove(oid);
        getApplicationCache().remove(oid);
    }
455159
def _delete(self, identifier=None):
        
        query = text("""
            DELETE FROM identifier_index
            WHERE identifier = :identifier;
        """)
        self.backend.library.database.connection.execute(query, identifier=identifier)