await terminal.kill();
console.log(terminal.status); // "exited"terminal.kill()
print(terminal.status) # "exited"After a successful request, the local instance is marked exited and not busy. Use this when the terminal is no longer needed.
kill()terminal.kill() → Promise<ComputeTerminal>
Stop the terminal and everything it started.
Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.
await terminal.kill();
console.log(terminal.status); // "exited"terminal.kill()
print(terminal.status) # "exited"After a successful request, the local instance is marked exited and not busy. Use this when the terminal is no longer needed.