MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / delete

Method delete

python/openshell/sandbox.py:438–443  ·  view source on GitHub ↗
(self, sandbox_name: str)

Source from the content-addressed store, hash-verified

436 return [item.id for item in self.list(limit=limit, offset=offset)]
437
438 def delete(self, sandbox_name: str) -> bool:
439 response = self._stub.DeleteSandbox(
440 openshell_pb2.DeleteSandboxRequest(name=sandbox_name),
441 timeout=self._timeout,
442 )
443 return bool(response.deleted)
444
445 def wait_deleted(self, sandbox_name: str, *, timeout_seconds: float = 60.0) -> None:
446 deadline = time.time() + timeout_seconds

Callers 2

deleteMethod · 0.45
__exit__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected