Remove a descriptor.
@param validKey  This could be the {@link JdbcConnectionDescriptor}
itself, or the associated {@link JdbcConnectionDescriptor#getPBKey PBKey}.
355456
public void removeDescriptor(Object validKey)
    {
        PBKey pbKey;
        if (validKey instanceof PBKey)
        {
            pbKey = (PBKey) validKey;
        }
        else if (validKey instanceof JdbcConnectionDescriptor)
        {
            pbKey = ((JdbcConnectionDescriptor) validKey).getPBKey();
        }
        else
        {
            throw new MetadataException("Could not remove descriptor, given object was no vaild key: " +
                    validKey);
        }
        Object removed = null;
        synchronized (jcdMap)
        {
            removed = jcdMap.remove(pbKey);
            jcdAliasToPBKeyMap.remove(pbKey.getAlias());
        }
        log.info("Remove descriptor: " + removed);
    }
94203
public void remove(Object primaryKey)
                    throws RemoteException,
                    RemoveException,
                    FinderException
    {
        // d141216 method rewritten to avoid calling preinvoke/postinvoke
        //         twice in code path (i.e. don't just call remove on the
        //         bean after it is activated).  With the re-write, the
        //         bean will be activated and removed in the same tran
        //         as defined by the tx attribute on home.remove().

        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2

        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "remove(pk) : " + primaryKey);

        homeEnabled();

        // Session beans and MDBs cannot be removed using this method.
        // For session beans, the spec calls for throwing an exception
        // to indicate this (no PK). MDB section not specific, thus do
        // the same for consistency.

        if (statefulSessionHome || statelessSessionHome || messageDrivenHome)
        {
            throw new RemoveException();
        }

        BeanId beanId = ivEntityHelper.remove(this, primaryKey);

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "remove(pk) : " + beanId);
    }
1098424
public Object remove(Serializable key) {
        if(component.initialStateMarked()) {
            Object retVal = deltaMap.remove(key);

            if(retVal==null) {
                return defaultMap.remove(key);
            }
            else {
                defaultMap.remove(key);
                return retVal;
            }
        }
        else {
            return defaultMap.remove(key);
        }
    }
1336647
public void unregisterPrototype( String key, Class c )
    {

        prototypes.remove(new PrototypeKey(key, c));

    }
1225113
@SuppressWarnings({"unused", "WeakerAccess"})
    public void removeValueForKey(final String key) {
        postAsyncSafely("removeValueForKey", new Runnable() {
            @Override
            public void run() {
                _removeValueForKey(key);
            }
        });
    }
1018939
@Override
	public Object remove(java.lang.Object key) {
		return internalMap.remove(key);
	}
1205978
protected void invalidateCacheEntry(String spaceId, String key) {
        if (isCacheEnabled()) {
            removeFromCache(getCacheName(), calcCacheKey(spaceId, key));
        }
    }
1359465
public Object remove (int key)
    {
        int size = _keys.length, start = key % size;
        for (int ii = 0; ii < size; ii++) {
            int idx = (ii + start) % size;
            if (_keys[idx] == key) {
                Object value = _values[idx];
                _keys[idx] = -1;
                _values[idx] = null;
                return value;
            }
        }
        return null;
    }
639858
public <T> int del(T pk) throws SQLException {
		if (pk == null) {
			return 0;
		}
		return this.del(Entity.create(tableName).set(primaryKeyField, pk));
	}
930061
@Override
	public CPDefinitionInventory removeByCPDefinitionId(long CPDefinitionId)
		throws NoSuchCPDefinitionInventoryException {
		CPDefinitionInventory cpDefinitionInventory = findByCPDefinitionId(CPDefinitionId);

		return remove(cpDefinitionInventory);
	}
989927
public V remove(Object key) {
        final int index = indexOfKey(key);
        if (index >= 0) {
            return removeAt(index);
        }

        return null;
    }
9287
public void removeSessionProvider(Object key)
   {
      if (providers.containsKey(key))
      {
         getSessionProvider(key).close();
         providers.remove(key);
      }

      if (systemProviders.containsKey(key))
      {
         systemProviders.get(key).close();
         systemProviders.remove(key);
      }
   }
461049
@Override
	public CPInstance removeByC_C(long CPDefinitionId, String CPInstanceUuid)
		throws NoSuchCPInstanceException {
		CPInstance cpInstance = findByC_C(CPDefinitionId, CPInstanceUuid);

		return remove(cpInstance);
	}
361536
public Object remove(int key) throws SIErrorException                                  // D214655
   {
      if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", ""+key);

      captiveComparitorKey.setValue(key);

      // Start D214655
      Object retObject = map.remove(captiveComparitorKey);

      if (retObject == null)
      {
         // If no object existed this is always an error too

         throw new SIErrorException(
            nls.getFormattedMessage("NO_SUCH_KEY_SICO2059", new Object[] {""+key}, null)  // D256974
         );
      }

      if (tc.isEntryEnabled()) SibTr.exit(tc, "remove");
      return retObject;
      // End D214655
   }
53758
@Deprecated
  @Override
  public boolean remove(@Nullable final Object rowKey, @Nullable final Object columnKey,
      final Object value) {
    throw new UnsupportedOperationException();
  }
1277044
public static final void remove(String key) {
        Map<String, Object> ctx = CTX_HOLDER.get();
        if (ctx != null) {
            ctx.remove(key);
        }
    }
1249349
public V remove (K removeKey) {
        V removedValue = this.store.remove(removeKey);

        if ( removedValue != null ) {
            this.notificationExecutor.fireRemoveNotification(this.listeners.iterator(), removeKey, removedValue);
        }

        return  removedValue;
    }