public function deleteContentStream($refresh = true)
    {
        $newObjectId = $this->getId();
        $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);

        $this->getBinding()->getObjectService()->deleteContentStream(
            $this->getRepositoryId(),
            $newObjectId,
            $changeToken
        );

        if ($refresh === true) {
            $this->refresh();
        }

        if ($newObjectId === null) {
            return null;
        }

        return $this->getSession()->getObject(
            $this->getSession()->createObjectId($newObjectId),
            $this->getCreationContext()
        );
    }
public function deleteContentStream($refresh = true)
    {
        $newObjectId = $this->getId();
        $changeToken = $this->getPropertyValue(PropertyIds::CHANGE_TOKEN);

        $this->getBinding()->getObjectService()->deleteContentStream(
            $this->getRepositoryId(),
            $newObjectId,
            $changeToken
        );

        if ($refresh === true) {
            $this->refresh();
        }

        if ($newObjectId === null) {
            return null;
        }

        return $this->getSession()->getObject(
            $this->getSession()->createObjectId($newObjectId),
            $this->getCreationContext()
        );
    }
public function deleteContentStream ( $ refresh = true ) { $ newObjectId = $ this -> getId ( ) ; $ changeToken = $ this -> getPropertyValue ( PropertyIds :: CHANGE_TOKEN ) ; $ this -> getBinding ( ) -> getObjectService ( ) -> deleteContentStream ( $ this -> getRepositoryId ( ) , $ newObjectId , $ changeToken ) ; if ( $ refresh === true ) { $ this -> refresh ( ) ; } if ( $ newObjectId === null ) { return null ; } return $ this -> getSession ( ) -> getObject ( $ this -> getSession ( ) -> createObjectId ( $ newObjectId ) , $ this -> getCreationContext ( ) ) ; }
Removes the current content stream from the document and refreshes this object afterwards.

@param boolean $refresh if this parameter is set to <code>true</code>, this object will be refreshed after the
content stream has been deleted
@return DocumentInterface|null the updated document, or <code>null</code> if the repository did not return
an object ID
Removes the current content stream from the document and refreshes this object afterwards .