ComputeTerminal

kill()

terminal.kill() → Promise<ComputeTerminal>

Stop the terminal and everything it started.

Using Python?

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.