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

Method deleteData

lib/Service/DataloadService.php:546–559  ·  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

544 * @throws \OCP\DB\Exception
545 */
546 public function deleteData(int $objectId, $dimension1, $dimension2, bool $isDataset)
547 {
548 $datasetId = $this->getDatasetId($objectId, $isDataset);
549 if ($datasetId != '') {
550 $result = $this->StorageService->delete($datasetId, $dimension1, $dimension2);
551
552 // Update the Context Chat backend
553 $this->DatasetService->provider($datasetId);
554
555 return ['delete' => $result];
556 } else {
557 return false;
558 }
559 }
560
561 /**
562 * 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