huskar_api/models/znode.py
def delete(self, version=None):
        """Deletes this znode from ZooKeeper.

        It is concurrency-safe if you never break the :attr:`ZnodeModel.stat`.

        :param version: Optional. The alternative version instead of
                        :attr:`ZnodeModel.stat`.
        :raises OutOfSyncError: The model is not loaded yet, or the local data
                                is outdated.
        """
        if self.stat is None:
            raise OutOfSyncError()
        if version is None:
            version = self.stat.version
        try:
            self.client.delete(self.path, version=version, recursive=False)
        except BadVersionError as e:
            raise OutOfSyncError(e)
        else:
            self.stat = None
            self.data = None
Deletes this znode from ZooKeeper.

        It is concurrency-safe if you never break the :attr:`ZnodeModel.stat`.

        :param version: Optional. The alternative version instead of
                        :attr:`ZnodeModel.stat`.
        :raises OutOfSyncError: The model is not loaded yet, or the local data
                                is outdated.
        
Deletes this znode from ZooKeeper.
It is concurrency-safe if you never break the :attr:`ZnodeModel.stat`.
Deletes this znode from ZooKeeper . It is concurrency - safe if you never break the : attr : ` ZnodeModel . stat ` .
def delete(self, version=None):
        if self.stat is None:
            raise OutOfSyncError()
        if version is None:
            version = self.stat.version
        try:
            self.client.delete(self.path, version=version, recursive=False)
        except BadVersionError as e:
            raise OutOfSyncError(e)
        else:
            self.stat = None
            self.data = None
def delete ( self , version = None ) : if self . stat is None : raise OutOfSyncError ( ) if version is None : version = self . stat . version try : self . client . delete ( self . path , version = version , recursive = False ) except BadVersionError as e : raise OutOfSyncError ( e ) else : self . stat = None self . data = None
Deletes this znode from ZooKeeper.
Deletes this znode from ZooKeeper .
"""Deletes this znode from ZooKeeper.

        It is concurrency-safe if you never break the :attr:`ZnodeModel.stat`.

        :param version: Optional. The alternative version instead of
                        :attr:`ZnodeModel.stat`.
        :raises OutOfSyncError: The model is not loaded yet, or the local data
                                is outdated.
        """
The model is not loaded yet, or the local data
is outdated.
The model is not loaded yet or the local data is outdated .
OutOfSyncError
self
version
Optional. The alternative version instead of
:attr:`ZnodeModel.stat`.
Optional . The alternative version instead of : attr : ` ZnodeModel . stat ` .