def remote_destroy(self):
        if not self._terminating:
            if self._container:
                self._terminating = self._stop()
                self._terminating.addBoth(passthrough(self._destroy))
            else:
                self._terminating = succeed(None)

        return self._terminating
Method should be called to destroy the container.
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/container.py/RCEContainer.remote_destroy