Skip to main content

Delete session

DELETE 

/v1/workspaces/:workspaceId/sessions/:sessionId

Permanently deletes a session in any known state — it does not have to be terminated first. The session is removed immediately and cannot be restored; a running VM is stopped and then discarded together with its disk once it has shut down. Prefer this over TerminateSession unless you need to restore the session later. Rejected with FAILED_PRECONDITION while the VM's state is unknown (e.g. its node is unreachable) — retry once it settles.

RequestClick to copy link​

A successful response.