Removes the given object from the set of registered destinations.

@param id
the unique id of the destination to be removed.
@return
{@code true} if the object was in the set of registered destinations,
and thus removed, {@code false} otherwise.
354462
public boolean removeDestination(String id) {
		logger.trace("removing destination {}", id);
		for(Destination<M> destination : destinations) {
			if(destination.getId().equals(id)) {
				destinations.remove(destination);
				return true;
			}
		}
		return false;
	}
1217825
private function removeFromHashmapById($id)
    {
        try {
            foreach ($this->_hashmap as $tag => $vars) {
                foreach (array_keys($vars) as $key) {
                    if ($key == $id) {
                        unset($this->_hashmap[$tag][$key]);

                        return $this->saveHashmap();
                    }
                }
            }
        } catch (\Exception $e) {
            $this->log('warning', \sprintf('Unable to remove id from hashmap %s : %s', $id, $e->getMessage()));

            return false;
        }

        return false;
    }
179158
public void delete(int id) {
        String url = WxEndpoint.get("url.tag.delete");
        String json = JsonMapper.nonEmptyMapper().toJson(new TagWrapper(id));
        logger.debug("delete tag: {}", json);
        wxClient.post(url, json);
    }
1340735
private void remove(final String id, final StringBuilder sql) {
        sql.append("DELETE FROM ").append(getName()).append(" WHERE ").append(JdbcRepositories.getDefaultKeyName()).append(" = '").
                append(id).append("'");
    }
493290
public boolean removeBusItinerary(BusItinerary itinerary) {
		final int index = this.itineraries.indexOf(itinerary);
		if (index >= 0) {
			return removeBusItinerary(index);
		}
		return false;
	}
785274
public void remove(Id id) {
        readCache.remove(new CacheKey(id));
        writeCache.remove(id);
    }
1195060
public int remove(String id) throws Exception
    {
        id = Preconditions.checkNotNull(id, "id cannot be null");

        queue.checkState();

        int     count = 0;
        for ( String name : queue.getChildren() )
        {
            if ( parseId(name).id.equals(id) )
            {
                if ( queue.tryRemove(name) )
                {
                    ++count;
                }
            }
        }

        return count;
    }
1137825
public void deleteById(Object id) {

        int count = beginDelete().whereEquals(idColumn.getColumnName(), id).delete();

        if (count == 0) {
            throw new RowNotFoundException(table, id);
        }
    }
487781
@SuppressWarnings("unchecked")
    public void removeProperty(Object obj, Object key) {
        if (isMap(obj))
            ((Map) obj).remove(key.toString());
        else {
            List list = (List) obj;
            int index = key instanceof Integer ? (Integer) key : Integer.parseInt(key.toString());
            list.remove(index);
        }
    }
1023313
public void removeFromCache(String id) throws DaoManagerException{
		if (map.containsKey(id)){
			map.remove(id);
		} 
	}
461241
private boolean removeObject() {
        SharedPreferences prefs = loadSharedPreferences("objectList");

        List<String> objects = getObjectList();
        
        int index = objects.indexOf(getId());
        
        if (index == ArrayUtils.INDEX_NOT_FOUND) return false;

        objects.remove(getId());

        if (objects.size() == 0) {
            prefs.edit().putString("list", null).commit();
        } else {
            prefs.edit().putString("list", StringUtils.join(objects, ",")).commit();
        }

        return true;
    }
203531
public boolean removePluginById(String id) {
		SimonConsolePlugin plugin = getPluginById(id);
		return plugin != null && plugins.remove(plugin);
	}
698877
public function remove($id)
    {
        if ($this->locked) {
            return false;
        }

        if (strpos($id, '.') !== false) {
            $k = '$this->data' . "['" . str_replace('.', "']['", $id) . "']";
            eval('$has = isset(' . $k . ');');
            if ($has) {
                eval('unset(' . $k . ');');
                return true;
            } else {
                return false;
            }
        } elseif ($this->has($id)) {
            unset($this->data[$id]);
            return true;
        } else {
            return false;
        }
    }
1117474
public function remove($id)
    {
        if (false === $this->_cache->delete($id)) {
            return $this->_onError('remove');
        }

        return true;
    }
750078
public int deleteByIdCascade(Long id) throws SQLException {
		int count = 0;
		if (id != null) {
			SpatialReferenceSystem srs = queryForId(id);
			if (srs != null) {
				count = deleteCascade(srs);
			}
		}
		return count;
	}
13217
public static ConnectionHandler unregister(final String id) {
        if (id == null || id.length() == 0) {
            return null; // Not possible
        } // end of if

        return handlers.remove(id);
    }
1242412
public void remove(Identity oid)
    {
        if(log.isDebugEnabled()) log.debug("Remove object " + oid);
        sessionCache.remove(oid);
        getApplicationCache().remove(oid);
    }