@param string $id
@param array|null $params
@param string|null $apiKey

@return Shippo_Remove Removes shipments from a batch
347928
public static function remove($id, $params = null, $apiKey = null)
    {
        $class = get_class();
        return self::_scopedRemoveBatch($class, $id, $params, $apiKey);
    }
730854
public function removeOrganizationsAction($id, $class, Request $request)
    {
        $object = $this->find($class, $id);
        $organizations = $this->decodeIdsString($request, 'Claroline\CoreBundle\Entity\Organization\Organization');
        $this->crud->patch($object, 'organization', Crud::COLLECTION_REMOVE, $organizations);

        return new JsonResponse(
              $this->serializer->serialize($object)
          );
    }
974910
public static function deleteByIds($ids, array $params = [])
    {
        if (!is_array($ids)) {
            $ids = explode(",", $ids);
        }

        $m = new static;
        $pk = $m->getPrimaryKey();
        $records = [];
        foreach ($ids as $id) {
            $records[] = [$pk => $id];
        }

        return static::bulkDelete($records, $params);
    }
399317
public function remove($param)
        {
            if ($param instanceof Container) {
                $param = $param->id;
            }

            $item = $this->get($param);

            if ($item) {
                $id = (int) $item->id;

                if ($this->_items[$id]) {
                    unset($this->_items[$id]);
                }
            }

            return $this;
        }
634545
def remove(id, resource_ids)
      params = {
        id: id,
        resource_ids: resource_ids
      }
      requires params
      DataSift.request(:PUT, 'source/resource/remove', @config, params)
    end
837075
public function getById(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_BY_ID,
            $params,
            $id
        );
    }
1159592
public function update(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::PUT,
            ResourceMethodEnum::UPDATE,
            $params,
            $id
        );
    }
1099127
public static function deleteById($id, array $params = [])
    {
        $m = new static;
        $pk = $m->getPrimaryKey();

        try {
            $response = static::bulkDelete([[$pk => $id]], $params);

            return current($response);
        } catch (BatchException $ex) {
            $response = $ex->pickResponse(0);
            if ($response instanceof \Exception) {
                throw $response;
            }

            return $response;
        } catch (\Exception $ex) {
            throw new InternalServerErrorException($ex->getMessage());
        }
    }
1257435
public function remove($id, $optParams = array()) {
      $params = array('id' => $id);
      $params = array_merge($params, $optParams);
      $data = $this->__call('remove', array($params));
      return $data;
    }
294964
public function remove(?string $id, bool $v = false, bool $force = false, bool $link = false)
    {
        $id = $id ?? $this->container_id;

        $url = self::$base_url.'/'.$id.'?'.http_build_query(compact(
            'v', 'force', 'link'
        ));

        $output = self::$curl->delete($url);

        $http_return_code = self::$curl->getCode();

        if (204 === $http_return_code) {
            return null;
        }

        throw new Exception(json_decode($output)->message, $http_return_code);
    }
643097
public function removeLineItem(string $id, Request $request, SalesChannelContext $context): JsonResponse
    {
        $token = $request->request->getAlnum('token', $context->getToken());

        $cart = $this->cartService->getCart($token, $context);

        if (!$cart->has($id)) {
            throw new LineItemNotFoundException($id);
        }

        $cart = $this->cartService->remove($cart, $id, $context);

        return new JsonResponse($this->serialize($cart));
    }
1195044
private function deleteItemById($id, $key, $className)
    {
        /** @var \OxidEsales\Eshop\Core\Model\BaseModel $modelObject */
        $modelObject = oxNew($className);

        if ($modelObject->load($id)) {
            if ($this->_blMallUsers) {
                $modelObject->setIsDerived(false);
            }
            $modelObject->delete();
        }
    }
1150253
public function unpublish($id, $optParams = array())
  {
    $params = array('id' => $id);
    $params = array_merge($params, $optParams);
    return $this->call('unpublish', array($params), "MapsEngine_PublishResponse");
  }
377118
protected static function deleteCollectionByIdAsyncWithHttpInfo($collection_id) 
    {
        $returnType = '';  
        $request = self::deleteCollectionByIdRequest($collection_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
94357
public function uploadForTask(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::UPLOAD,
            ResourceMethodEnum::UPLOAD_FOR_TASK,
            $params,
            $id
        );
    }
104305
public function deleteShared($apiKey, $pin)
    {
        $url     = self::API_SHARED_URL.$pin->getId();
        $headers = [
            self::API_SHARED_KEY => $apiKey,
        ];

        $this->log("Pusher::deleteShared => {$url}", ['headers' => $headers]);

        $this->delete($url, $headers);
    }
656296
protected static function deleteOrderByIdAsyncWithHttpInfo($order_id) 
    {
        $returnType = '';  
        $request = self::deleteOrderByIdRequest($order_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }