remove an article form the wishlist.

@param string $sPkgShopWishlistArticleId - the id of the item on the list
494497
public function RemoveArticleFromWishlist($sPkgShopWishlistArticleId)
    {
        $oWishlist = &$this->GetWishlist(true);
        $oWishlistItem = TdbPkgShopWishlistArticle::GetNewInstance();
        /** @var $oWishlistItem TdbPkgShopWishlistArticle */
        if ($oWishlistItem->LoadFromFields(array('pkg_shop_wishlist_id' => $oWishlist->id, 'id' => $sPkgShopWishlistArticleId))) {
            $oWishlistItem->AllowEditByAll(true);
            $oWishlistItem->Delete();
        }
    }
1321959
protected function deleteLinked($store_id)
    {
        $this->db->delete('triggers', array('store_id' => $store_id));
        $this->db->delete('wishlist', array('store_id' => $store_id));
        $this->db->delete('collection', array('store_id' => $store_id));
        $this->db->delete('product_sku', array('store_id' => $store_id));
    }
1368625
protected function _removeFromDisabledList($sModuleId)
    {
        $aDisabledModules = (array) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aDisabledModules');

        if (isset($aDisabledModules) && is_array($aDisabledModules)) {
            $aDisabledModules = array_diff($aDisabledModules, [$sModuleId]);
            $this->_saveToConfig('aDisabledModules', $aDisabledModules, 'arr');
        }
    }
853119
public function RemoveArticleFromNoticeList($sArticleId)
    {
        $this->GetNoticeListArticles();
        if (array_key_exists($sArticleId, $this->aNoticeList)) {
            unset($this->aNoticeList[$sArticleId]);
            if ($this->IsLoggedIn()) {
                $noticeListItemObject = TdbShopUserNoticeList::GetNewInstance();
                if (true === $noticeListItemObject->LoadFromFields(
                    array(
                        'data_extranet_user_id' => $this->id,
                        'shop_article_id' => $sArticleId,
                    )
                )) {
                    $noticeListItemObject->Delete();
                }
            } else {
                $this->CommitNoticeListToCookie();
            }
        }
    }
198710
public function removeActionArticle()
    {
        $sActionId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('oxid');
        //$sActionId = $this->getConfig()->getConfigParam( 'oxid' );

        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $oDb->Execute(
            'delete from oxobject2action '
            . 'where oxactionid=' . $oDb->quote($sActionId)
            . ' and oxclass = "oxarticle"'
        );
    }
978890
function _removeWishIdFromEnteredMagicWords(id) {
  function removeIdFromWishes(charObj, parent, charObjName) {
    _each(charObj, (childProp, propName) => {
      if (propName === 'wishes') {
        const index = childProp.indexOf(id)
        if (index !== -1) {
          childProp.splice(index, 1)
        }
        if (!childProp.length) {
          delete charObj[propName]
        }
      } else {
        removeIdFromWishes(childProp, charObj, propName)
      }
    })
    const keepCharObj = _getPropFromPosterity(charObj, 'wishes').length > 0
    if (!keepCharObj && parent && charObjName) {
      delete parent[charObjName]
    }
  }
  removeIdFromWishes(_enteredMagicWords)
}
620391
@Override
	public void removeByGroupId(long groupId) {
		for (CommercePriceList commercePriceList : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
1077165
@Override
	public void removeByCW_CPI(long commerceWishListId, String CPInstanceUuid) {
		for (CommerceWishListItem commerceWishListItem : findByCW_CPI(
				commerceWishListId, CPInstanceUuid, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceWishListItem);
		}
	}
725484
protected function submitWishlist($wishlist_action_model)
    {
        $this->setSubmitted('product');
        $this->filterSubmitted(array('product_id'));

        if ($this->isPosted('remove_from_wishlist')) {
            $this->deleteFromWishlist($wishlist_action_model);
        } else if ($this->isPosted('add_to_wishlist')) {
            $this->validateAddToWishlist();
            $this->addToWishlist($wishlist_action_model);
        }
    }
781337
protected function _removeProductSuggestions( $productId, $listTypeId,
		MShop_Common_Manager_Interface $productListManager )
	{
		$search = $productListManager->createSearch();
		$expr = array(
			$search->compare( '==', 'product.list.parentid', $productId ),
			$search->compare( '==', 'product.list.type.id', $listTypeId )
		);

		$search->setConditions( $search->combine( '&&', $expr ) );
		$listItems = $productListManager->searchItems( $search );

		$productListManager->deleteItems( array_keys( $listItems ) );
	}
661975
protected function removeArticleFromList( &$articleList, $articleName )
	{
		if( $articleList[$articleName] > 0 )
		{
			if( $articleList[$articleName] == 1 )
				unset( $articleList[$articleName] );
			else
				$articleList[$articleName]--;
			return TRUE;
		}
		return FALSE;
	}
605633
@Override
	public void removeByCommerceShipment(long commerceShipmentId) {
		for (CommerceShipmentItem commerceShipmentItem : findByCommerceShipment(
				commerceShipmentId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceShipmentItem);
		}
	}
646284
function removeArticle(summary, level) {
    // Coerce to level
    level = is.string(level)? level : level.getLevel();

    var parent = summary.getParent(level);

    var articles = parent.getArticles();
    // Find the index to remove
    var index = articles.findIndex(function(art) {
        return art.getLevel() === level;
    });
    if (index === -1) {
        return summary;
    }

    // Remove from children
    articles = articles.remove(index);
    parent = parent.set('articles', articles);

    // Reindex the level from here
    parent = indexArticleLevels(parent);

    return mergeAtLevel(summary, parent.getLevel(), parent);
}
1368689
public function delete($blogId, Article &$article)
    {
        $articleId = $article->getId();
        $endpoint = '/admin/blogs/'.$blogId.'/articles/'.$articleId.'.json';
        $this->request($endpoint, 'DELETE');
    }
952177
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceShipmentItem commerceShipmentItem : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceShipmentItem);
		}
	}
145917
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceWishList commerceWishList : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWishList);
		}
	}
1253404
@Override
	public void removeByCW_CP(long commerceWishListId, long CProductId) {
		for (CommerceWishListItem commerceWishListItem : findByCW_CP(
				commerceWishListId, CProductId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(commerceWishListItem);
		}
	}