Jackalope\ObjectManager::removeItemImmediately PHP Method

removeItemImmediately() public method

Implement the workspace removeItem method.
See also: Workspace::removeItem
public removeItemImmediately ( string $absPath )
$absPath string the absolute path of the item to be removed
    public function removeItemImmediately($absPath)
    {
        if (!$this->transport instanceof WritingInterface) {
            throw new UnsupportedRepositoryOperationException('Transport does not support writing');
        }
        $absPath = PathHelper::normalizePath($absPath);
        $item = $this->session->getItem($absPath);
        // update local state and cached objects about disappeared nodes
        if ($item instanceof NodeInterface) {
            $this->performNodeRemove($absPath, $item, false);
            $this->cascadeDelete($absPath, false);
        } else {
            $this->performPropertyRemove($absPath, $item, false);
        }
        $item->setDeleted();
    }