api.compute

terminals.remove()

api.compute.terminals.remove(id) → Promise<{ ok }>

Close a terminal and stop its container.

Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await api.compute.terminals.remove("YOUR_TERMINAL_ID");
api.compute.terminals.remove("YOUR_TERMINAL_ID")
idstringrequired

ID of a terminal owned by the signed-in account.

This stops the process

Removal terminates the terminal and the work it started. Use <code>terminal.interrupt()</code> if you only want to stop the current command and keep the terminal available.