Zendesk\API\Traits\Resource\DeleteMany::deleteMany PHP Метод

deleteMany() публичный Метод

Show multiple resources
public deleteMany ( array $ids = [], string $key = 'ids' ) : null
$ids array Array of IDs to delete
$key string Could be `id` or `external_id`
Результат null
    public function deleteMany(array $ids = [], $key = 'ids')
    {
        try {
            $route = $this->getRoute(__FUNCTION__);
        } catch (RouteException $e) {
            if (!isset($this->resourceName)) {
                $this->resourceName = $this->getResourceNameFromClass();
            }
            $route = $this->resourceName . '/destroy_many.json';
            $this->setRoute('', $route);
        }
        $response = Http::send($this->client, $route, ['method' => 'DELETE', 'queryParams' => [$key => implode(',', $ids)]]);
        $this->client->setSideload(null);
        return $response;
    }
DeleteMany