MCPcopy Create free account
hub / github.com/Rello/analytics / deleteData

Method deleteData

lib/Service/DataloadService.php:564–577  ·  view source on GitHub ↗

* delete data from input form * * @NoAdminRequired * @param int $objectId * @param $dimension1 * @param $dimension2 * @param bool $isDataset * @return array|false * @throws \OCP\DB\Exception */

(int $objectId, $dimension1, $dimension2, bool $isDataset)

Source from the content-addressed store, hash-verified

562 * @throws \OCP\DB\Exception
563 */
564 public function deleteData(int $objectId, $dimension1, $dimension2, bool $isDataset)
565 {
566 $datasetId = $this->getDatasetId($objectId, $isDataset);
567 if ($datasetId != '') {
568 $result = $this->StorageService->delete($datasetId, $dimension1, $dimension2);
569
570 // Update the Context Chat backend
571 $this->DatasetService->provider($datasetId);
572
573 return ['delete' => $result];
574 } else {
575 return false;
576 }
577 }
578
579 /**
580 * Import clipboard data

Callers

nothing calls this directly

Calls 3

getDatasetIdMethod · 0.95
deleteMethod · 0.45
providerMethod · 0.45

Tested by

no test coverage detected