Removes the given object from the cache

@param oid  oid of the object to remove
338812
public void remove(Identity oid)
    {
        if (oid == null) return;

        ObjectCache cache = getCache(oid, null, METHOD_REMOVE);
        if (cache != null)
        {
            cache.remove(oid);
        }
    }
1176691
public void remove(Id id){
        String dir = getBaseDirectory(id.getDatabase(),id.getCollection());
        boolean i1 = new File(dir+File.separator+id.getEntity()).delete();
        boolean i2 = new File(dir+File.separator+id.getEntity()+".json").delete();
        if(LOG.isDebugEnabled())
            LOG.debug("File removed successfully("+(i1&&i2)+") id: "+id);
    }
40841
@Override
    public boolean remove(Object o) {

        synchronized (partitions) {
            boolean remove = getPartitions().remove(o);
            updateCache();
            return remove;
        }
    }
1018720
def remove(cls, id):
        

        api = Client.instance().api
        api.index(id).delete()
430284
protected void requestOidRemove (String name, OidList list, int oid)
    {
        // if we're on the authoritative server, we update the set immediately
        boolean applyImmediately = isAuthoritative();
        if (applyImmediately) {
            list.remove(oid);
        }
        // dispatch an object removed event
        postEvent(new ObjectRemovedEvent(_oid, name, oid).setAlreadyApplied(applyImmediately));
    }
1148794
public static void unregister(String ID) {
        displayNameCache.remove(new CaseInsensitiveString(ID));
        registry.remove(ID);
    }
624431
public static void unregister(final JobID id) throws IOException {

		final LibraryCacheManager lib = get();
		lib.unregisterInternal(id);
	}
94117
public void remove(Identity oid)
    {
        try
        {
            jcsCache.remove(oid.toString());
        }
        catch (CacheException e)
        {
            throw new RuntimeCacheException(e.getMessage());
        }
    }
99480
public void remove(Object data, int iOpenMode) throws DBException, RemoteException
    {
        this.checkCurrentCacheIsPhysical(null);
        m_tableRemote.remove(data, iOpenMode);
        if (m_objCurrentCacheRecord != null)
        {
            if (m_mapCache != null)
                m_mapCache.set(((Integer)m_objCurrentCacheRecord).intValue(), NONE);
            else if (m_htCache != null)
                m_htCache.remove(m_objCurrentCacheRecord);
        }
        m_objCurrentPhysicalRecord = NONE;
        m_objCurrentLockedRecord = NONE;
        m_objCurrentCacheRecord = NONE;
    }
465623
public synchronized void remove(Object key) {
        Object victim = null;
        if (cacheEvictionListenerSet.isEmpty() == false) {
            victim = get(key);
        }

        primaryTable.remove(key);
        secondaryTable.remove(key);
        tertiaryTable.remove(key);

        if (victim != null) {
            ArrayList<Object> evictedValues = new ArrayList<Object>();
            evictedValues.add(victim);
            for (CacheEvictionListener evictionCallback : cacheEvictionListenerSet) {
                evictionCallback.evicted(evictedValues);
            }
        }
    }
663127
@Override
    public V remove(Object key) {
        final V old = this.get(key);
        this.cache.remove((Serializable) key);
        return old;
    }
777038
public void removeChannelFromCache(long channelId) {
        channels.computeIfPresent(channelId, (key, channel) -> {
            if (channel instanceof Cleanupable) {
                ((Cleanupable) channel).cleanup();
            }
            return null;
        });
    }
587306
private EDBObject removeIfExist(String oid, List<EDBObject> tempList) {
        Iterator<EDBObject> iterator = tempList.iterator();
        while (iterator.hasNext()) {
            EDBObject obj = iterator.next();
            if (obj.getOID().equals(oid)) {
                iterator.remove();
                return obj;
            }
        }
        LOGGER.debug(oid + " wasn't found in the list of end state objects");
        return null;
    }
82189
function remove(id) {
			var oItem = sap.ui.getCore().byId(id);
			if (oItem) {
				oItem.destroy();
			}
		}
606307
protected synchronized void remove(Object id, int bufferType, boolean returnToPool) {
        // final String methodName = "remove(Object,bufferType)";
        if (id == null) {
            return;
        }
        if (bufferType == this.EXPLICIT_BUFFER) {
            this.explicitBuffer.remove(id);
        } else if (bufferType == this.SCAN_BUFFER) {
            this.scanBuffer.remove(id);
        } else if (bufferType == this.GC_BUFFER) {
            if (id instanceof EvictionTableEntry) {
                EvictionTableEntry evt1 = (EvictionTableEntry) id;
                int i;
                for (i = 0; i < garbageCollectorBuffer.size(); i++) {
                    EvictionTableEntry evt = (EvictionTableEntry) garbageCollectorBuffer.get(i);
                    if (evt == evt1)
                        break;
                }
                if (i < garbageCollectorBuffer.size())
                    this.garbageCollectorBuffer.remove(i);
                if (returnToPool) {
                    cod.htod.evictionEntryPool.add(id);
                }
            }
        }
        // traceDebug(methodName, "cacheName=" + this.cod.cacheName + " id=" + id + " bufferType=" + bufferType);
    }
476634
def delete(self, object_id):
        
        obj = self.session.query(self.cls).filter_by(id=object_id).one()
        self.session.delete(obj)
        return obj
1046535
public void cache(Identity oid, Object obj)
    {
        if (oid != null && obj != null)
        {
            ObjectCache cache = getCache(oid, obj, METHOD_CACHE);
            if (cache != null)
            {
                cache.cache(oid, obj);
            }
        }
    }