Removes the recipes with the specified ids from the database.
@param array|int[] $recipeIds
320274
protected function removeIds(array $recipeIds): void
    {
        // First delete the ingredients...
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(RecipeIngredient::class, 'ri')
                     ->andWhere('ri.recipe IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));
        $queryBuilder->getQuery()->execute();

        // ... and the products.
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(RecipeProduct::class, 'rp')
                     ->andWhere('rp.recipe IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));
        $queryBuilder->getQuery()->execute();

        // And finally the recipes itself.
        $queryBuilder = $this->entityManager->createQueryBuilder();
        $queryBuilder->delete(Recipe::class, 'r')
                     ->andWhere('r.id IN (:recipeIds)')
                     ->setParameter('recipeIds', array_values($recipeIds));

        $queryBuilder->getQuery()->execute();
    }
465774
public function deleteMulti(array $keys): void
    {
        if ($this->enabled === false) {
            return;
        }

        foreach ($keys as $index) {
            if ($key = $this->cacheIndex[$index] ?? null) {
                unset($this->cacheIndex[$index]);
            } else {
                $key = $index;
            }

            unset($this->cache[$key], $this->cacheExpiryTime[$key], $this->cacheAccessCount[$key]);
        }
    }
740979
def delete(ids, force):
    """"""
    records_deprecation_warning()

    from .api import Record
    for id_ in ids:
        record = Record.get_record(id_, with_deleted=force)
        record.delete(force=force)
    db.session.commit()
1151552
final public function deleteByPks(array $ids)
    {
        foreach ($ids as $id) {
            if (!$this->deleteByPk($id)) {
                return false;
            }
        }

        return true;
    }
1176774
public QueryBuilder removeParentIds(final Collection<Integer> ids) {
        if (ids != null) {
            parentIds.removeAll(ids);
        }
        return this;
    }
521875
public function clearByPageId(int $pageId)
    {
        $cache = $this->get();
        $cacheEntries = \array_keys($cache->getByTag('pageId_' . $pageId));
        foreach ($cacheEntries as $cacheEntry) {
            $cache->remove($cacheEntry);
        }
    }
637853
public function removeBindings($id)
    {
        if ($this->hasDefinition($id)) {
            foreach ($this->getDefinition($id)->getBindings() as $key => $binding) {
                list(, $bindingId) = $binding->getValues();
                $this->removedBindingIds[(int) $bindingId] = true;
            }
        }
    }
672342
public function removeDefinition($id)
    {
        if (isset($this->definitions[$id = $this->normalizeId($id)])) {
            unset($this->definitions[$id]);
            $this->removedIds[$id] = true;
        }
    }
268563
public function deleteByIds($ids)
    {
        $qb = $this->createQueryBuilder('filter')->delete()->where(
            'filter.id IN (:ids)'
        )->setParameter('ids', $ids);
        $qb->getQuery()->execute();
    }
981133
public function remove(Horde_Imap_Client_Ids $ids)
    {
        /* For sequence numbers, we need to reindex anytime we have an index
         * that appears equal to or after a previously seen index. If an IMAP
         * server is smart, it will expunge in reverse order instead. */
        if ($ids->sequence) {
            $remove = $ids->ids;
        } else {
            $ids->sort();
            $remove = array_reverse(array_keys($this->lookup($ids)));
        }

        if (empty($remove)) {
            return;
        }

        $this->sort();

        if (count($remove) == count($this->_ids) &&
            !array_diff($remove, array_keys($this->_ids))) {
            $this->_ids = array();
            return;
        }

        /* Find the minimum sequence number to remove. We know entries before
         * this are untouched so no need to process them multiple times. */
        $first = min($remove);
        $edit = $newids = array();
        foreach (array_keys($this->_ids) as $i => $seq) {
            if ($seq >= $first) {
                $i += (($seq == $first) ? 0 : 1);
                $newids = array_slice($this->_ids, 0, $i, true);
                $edit = array_slice($this->_ids, $i + (($seq == $first) ? 0 : 1), null, true);
                break;
            }
        }

        if (!empty($edit)) {
            foreach ($remove as $val) {
                $found = false;
                $tmp = array();

                foreach (array_keys($edit) as $i => $seq) {
                    if ($found) {
                        $tmp[$seq - 1] = $edit[$seq];
                    } elseif ($seq >= $val) {
                        $tmp = array_slice($edit, 0, ($seq == $val) ? $i : $i + 1, true);
                        $found = true;
                    }
                }

                $edit = $tmp;
            }
        }

        $this->_ids = $newids + $edit;
    }
973809
public function cleanup( array $siteids )
	{
		$path = 'classes/order/manager/base/submanagers';
		$default = array( 'address', 'coupon', 'product', 'service' );

		foreach( $this->_getContext()->getConfig()->get( $path, $default ) as $domain ) {
			$this->getSubManager( $domain )->cleanup( $siteids );
		}

		$this->_cleanup( $siteids, 'mshop/order/manager/base/default/item/delete' );
	}
190581
public function removePermission($ids)
    {
        $ids = is_array($ids) ? $ids : func_get_args();

        $this->permissions()->detach($ids);
    }
431382
public function forgetJobs($tags, $ids)
    {
        $this->connection()->pipeline(function ($pipe) use ($tags, $ids) {
            foreach ((array) $tags as $tag) {
                foreach ((array) $ids as $id) {
                    $pipe->zrem($tag, $id);
                }
            }
        });
    }
839101
public static function removeByIDs( $idList )
    {
        if ( !is_array( $idList ) )
            return;

        while ( count( $idList ) > 0 )
        {
            // remove by portion of 100 rows.
            $ids = array_splice( $idList, 0, 100 );

            $conditions = array( 'id' => array( $ids ) );

            eZPersistentObject::removeObject( self::definition(),
                                              $conditions );
        }
    }
831971
public function deletePictures($ids)
    {
        $pictures = $this->pictures()->whereIn('id', $ids)->get();

        $pictures->each(function ($item) {
            $item->delete();
        });
    }
710065
public function remove(...$values)
    {
        foreach ($values as $value) {
            $this->table->remove($value, null);
        }
    }
1084247
public function remove($themeIds) {
        $themeIds = (array)$themeIds;
        foreach($themeIds as $themeId) {
            $prefixedId = $this->getPrefixedThemeId($themeId);
            if(!$this->themeExists($prefixedId)) {
                continue;
            }
            $this->registry->unregisterTheme($prefixedId);
        }
        $this->logInfo('Item themes removed: ' . implode(',', $themeIds));
        return true;
    }