deleteCollectorResponse

@param int $collectorId
@param int $responseId

@return @see Client::sendRequest
544980
public function deleteCollectorResponse($collectorId, $responseId)
	{
		return $this->sendRequest(
			$this->createRequest('DELETE', sprintf('collectors/%s/responses/%s', $collectorId, $responseId))
		);
	}
1027820
public function getCollection($collectionId, $fields = ['*'])
    {
        $apiUrl = $this->getEndpoint('collections');
        $apiUrl .= $collectionId;

        $params = array(
            'fields' => implode(',', $fields)
        );

        $apiData = $this->apiGet($apiUrl, $params);

        return $this->decodeSingle($apiData);
    }
1361394
public function deleteAction($id)
    {
        $delete = function($id) {
            try {
                $collectionManager = $this->getCollectionManager();
                $collectionManager->delete($id);
            } catch (CollectionNotFoundException $cnf) {
                throw new EntityNotFoundException(self::$entityName, $id); // will throw 404 Entity not found
            } catch (MediaException $me) {
                throw new RestException($me->getMessage(), $me->getCode()); // will throw 400 Bad Request
            }
        };

        $view = $this->responseDelete($id, $delete);

        return $this->handleView($view);
    }
94421
protected function deleteCollectionItem()
    {
        $this->controlAccess('collection_item_delete');

        if ($this->collection_item->delete($this->data_collection_item['collection_item_id'])) {
            $url = "admin/content/collection-item/{$this->data_collection['collection_id']}";
            $this->redirect($url, $this->text('Collection item has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been deleted'), 'warning');
    }
556146
public function editCollection($collection_id = null)
    {
        $this->setCollection($collection_id);
        $this->setTitleEditCollection();
        $this->setBreadcrumbEditCollection();

        $this->setData('types', $this->collection->getTypes());
        $this->setData('collection', $this->data_collection);
        $this->setData('can_delete', $this->canDeleteCollection());
        $this->setData('languages', $this->language->getList(array('enabled' => true)));

        $this->submitEditCollection();
        $this->outputEditCollection();
    }
557832
def delete(self, collector_id=None):
        
        cid = self.collector_id

        if collector_id:
            cid = collector_id

        # param to delete id
        url = '{0}/{1}'.format(self.url, cid)
        request = requests.delete(url, auth=self.auth)
        try:
            # unable to delete collector
            response = request.json()
        except ValueError:
            # returns when collector is deleted
            # apparently, the request does not return
            # a json response
            response = {
                u'message': u'The request completed successfully.',
                u'status': 200,
            }
        return response
82276
public function deleteById($collection, $id)
    {
        try {
            $id = new \MongoDB\BSON\ObjectID((string) $id);
        } catch (\Exception $e) {
            return;
        }

        $queryOptions = new QueryOptions();
        $queryOptions->setQueryParams([
            '_id' => $id,
        ]);

        $this->ensureConnection();
        $this->db->$collection->deleteOne($queryOptions->getQueryParams());
    }
576333
private function forgetCollection(Collection $collection)
    {
        $query_builder = $this->manager->createQueryBuilder();
        $query_builder
            ->delete(StackUsageRecord::class, 'r')
            ->where('r.collection_id = :collection_id')
            ->setParameter('collection_id', $collection->getCollectionID())
            ->getQuery()->execute();
    }
1222968
public function deleteAction($id)
    {
        $response = parent::deleteAction($id);
        $this->fileManager->remove($id);
        return $response;
    }
754081
public function deleteRecord($spaceId, $objectId, $recordId)
    {
        $requestData = $this->getDefaultRequestData('query', []);
        $endpoint = vsprintf('projects/%s/spaces/%s/objects/%s/records/%s', [
            $this->getProjectId(),
            $spaceId,
            $objectId,
            $recordId
        ]);

        return $this->sendRequest($endpoint, $requestData, static::HTTP_METHOD_DELETE);
    }
347605
public function deleteSurveyPageQuestion($surveyId, $pageId, $questionId)
	{
		return $this->sendRequest(
			$this->createRequest('DELETE', sprintf('surveys/%d/pages/%d/questions/%d', $surveyId, $pageId, $questionId))
		);	
	}
708371
public function deleteMany($collectionName, array $ids)
     {
        $ids = join(',', $ids);
        $queryParams = ['collection_name' => $collectionName, 'ids' => $ids];
        $response = $this->client->request('DELETE', 'collections/?'.http_build_query($queryParams));
        $body = $response->getBody()->getContents();
        return json_decode($body, true);
     }
873033
public function updateCollector($collectorId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('PATCH', sprintf('collectors/%s', $collectorId), [], $data)
		);
	}
321047
public function remove($key): CollectionInterface
    {
        foreach ($this->indexes as $index) {
            $index->remove($key);
        }

        return parent::remove($key);
    }
1017208
public function copyCollectorMessage($collectorId, $fromCollectorId, $fromMessageId, $includeRecipients = false)
	{
		return $this->sendRequest(
			$this->createRequest('POST', sprintf('collectors/%s/messages', $collectorId), [
				'query' => [
					'from_collector_id'  => $fromCollectorId,
					'from_message_id' 	 => $fromMessageId,
					'include_recipients' => (bool)$includeRecipients,
				]
			])
		);
	}
1215373
public function delete($messageId)
    {
        return $this->sendRequest(
            self::METHOD_DELETE,
            str_replace(':message_id', $messageId, self::$endPoints['delete'])
        );
    }
627767
protected function setCollectionCollection($collection_id)
    {
        $this->data_collection = $this->collection->get($collection_id);

        if (empty($this->data_collection)) {
            $this->outputHttpStatus(404);
        }
    }