public function removeRawContent($contentId) { $this->locationGateway->removeElementFromTrash($this->loadContentInfo($contentId)->mainLocationId); foreach ($this->listVersions($contentId) as $versionInfo) { $this->fieldHandler->deleteFields($contentId, $versionInfo); } // Must be called before deleteRelations() $this->contentGateway->removeReverseFieldRelations($contentId); $this->contentGateway->deleteRelations($contentId); $this->contentGateway->deleteVersions($contentId); $this->contentGateway->deleteNames($contentId); $this->contentGateway->deleteContent($contentId); }
/** * Deletes raw content data. * * @param int $contentId */ public function removeRawContent($contentId) { $this->treeHandler->removeRawContent($contentId); }