Remove item from additional unit items
@param int $item_id
@return slot
481857
public function removeAdditionalUnitItem($item_id)
    {
        foreach ($this->_additional_unit_items as $k => $id) {
            if ($id === $item_id) {
                unset($this->_additional_unit_items[$k]);
                break;
            }
        }
        return $this;
    }
1079339
public function removeClass($id)
    {
        if (isset($this->classes[$id])) {
            unset($this->classes[$id]);
        }
        if (isset($this->items[$id])) {
            unset($this->items[$id]);
        }
        return $this;
    }
495355
public function get_item($itemid) {
        global $DB;

        $item = $DB->get_record('tool_recyclebin_category', array(
            'id' => $itemid
        ), '*', MUST_EXIST);

        $item->name = get_course_display_name_for_list($item);

        return $item;
    }
75016
public function remove($id)
    {
        $item = $this->getOrFail($id);
        unset($this->items[$id]);
        return $item;
    }
841606
public function deleteItem($id)
    {
        $updatedItems = $this->values['items'];
        foreach ($updatedItems as $index => $item) {
            if ($item['id'] == $id) {
                unset($updatedItems[$index]);
            }
        }
        $this->values['items'] = array_values($updatedItems);
    }
709409
public function removeItem($cacheId)
    {
        $cacheId = $this->normalizeKey($cacheId);

        try {
            return ($this->cache->delete($cacheId));
        } catch (ezcBaseException $ex) {
            return false;
        }
    }
876833
public function hasVoted($item_type, $item_id, $user_id=null, $ip=null)
	{
		return self::oneByScope($item_type, $item_id, $user_id, $ip)->get('id');
	}
1004212
public function actionRemove(int $id)
    {
        $items = Yii::$app->getRequest()->post('items', []);
        $assignmentModel = $this->findModel($id);
        $assignmentModel->revoke($items);

        return $assignmentModel->getItems();
    }
996426
public function remove($itemID)
    {
        if ($this->items === null) {
            if ( ! $this->fillItems()) {
                return false;
            }
        }

        $this->delFromDb($itemID);

        return $this->delItem($itemID);
    }
52236
public function canDelete($collection_id)
    {
        $sql = 'SELECT collection_item_id FROM collection_item WHERE collection_id=?';
        $result = $this->db->fetchColumn($sql, array($collection_id));
        return empty($result);
    }
84951
public function remove($id_or_external_id) {
    if (count($this) === 0) {
      return true;
    }
    $this->_set_items(array_filter($this->_get_items(), function($item) use ($id_or_external_id) {
      return !($item->id == $id_or_external_id || $item->external_id == $id_or_external_id);
    }));
  }
1283833
@Override
    public void removeItem(int itemID) {
        super.removeItem(itemID);
        ratingsItem.remove(itemID);
        itemsStats.remove(itemID);
    }
713384
public function addItemToReplacementData( $itemId )
    {
        if ( !isset( $this->replacementData[$itemId] ) )
        {
            $this->replacementData[$itemId] = 0;
        }
        ++$this->replacementData[$itemId];
    }
721901
protected function updateCollectionItem($collection_item_id)
    {
        if (!$this->isError() && !$this->collection_item->update($collection_item_id, $this->getSubmitted())) {
            $this->errorAndExit($this->text('Unexpected result'));
        }
    }
157513
public function deleteItem(ItemUUID $uuid)
    {
        $itemUUID = $uuid->composeUUID();
        $this->elementsToDelete[$itemUUID] = $uuid;
        unset($this->elementsToUpdate[$itemUUID]);
    }
119240
public synchronized GoogleCloudStorageItemInfo removeItem(StorageResourceId id) {
    PrefixKey key = new PrefixKey(id.getBucketName(), id.getObjectName());
    CacheValue<GoogleCloudStorageItemInfo> value = itemMap.remove(key);

    if (value == null) {
      return null;
    }

    if (isExpired(value)) {
      cleanupLists(key);
      return null;
    }

    return value.getValue();
  }
398041
public function revoke($itemName,$userId)
	{
		if(isset($this->_assignments[$userId][$itemName]))
		{
			unset($this->_assignments[$userId][$itemName]);
			return true;
		}
		else
			return false;
	}