src/Changes.php
public function delete($path): bool
    {
        $result = false;
        $parts = $this->split($path);

        $name = array_shift($parts);
        if (!count($parts)) {
            if (isset($this->ownData[$name])) {
                unset($this->ownData[$name]);
                $result = true;
            }
        } elseif (isset($this->subTrees[$name])) {
            $subtree = $this->subTrees[$name];
            $result = $subtree->delete($parts);
            if ($result && !$subtree->count()) {
                unset($this->subTrees[$name]);
            }
        }

        return $result;
    }
public function delete($path): bool
    {
        $result = false;
        $parts = $this->split($path);

        $name = array_shift($parts);
        if (!count($parts)) {
            if (isset($this->ownData[$name])) {
                unset($this->ownData[$name]);
                $result = true;
            }
        } elseif (isset($this->subTrees[$name])) {
            $subtree = $this->subTrees[$name];
            $result = $subtree->delete($parts);
            if ($result && !$subtree->count()) {
                unset($this->subTrees[$name]);
            }
        }

        return $result;
    }
public function delete ( $ path ) : bool { $ result = false ; $ parts = $ this -> split ( $ path ) ; $ name = array_shift ( $ parts ) ; if ( ! count ( $ parts ) ) { if ( isset ( $ this -> ownData [ $ name ] ) ) { unset ( $ this -> ownData [ $ name ] ) ; $ result = true ; } } elseif ( isset ( $ this -> subTrees [ $ name ] ) ) { $ subtree = $ this -> subTrees [ $ name ] ; $ result = $ subtree -> delete ( $ parts ) ; if ( $ result && ! $ subtree -> count ( ) ) { unset ( $ this -> subTrees [ $ name ] ) ; } } return $ result ; }
Delete stream entity from array.

@param string|array $path
Delete stream entity from array .