pydo.harness.delete_session()
Generated on 13 Nov 2026
from pydo version
v0.46.0
Usage
client.harness.delete_session(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
x_device_uuid=None,
)Description
Persistent workspace contents are retained per tenant policy. A persistent workspace the session holds is saved and kept: it goes to RELEASING while the files are saved and then back to AVAILABLE. Creating a session on that workspace returns 409 until it is AVAILABLE again. Returns 204 No Content on success.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
x_device_uuidstring optionalExample:
device-uuid-exampleOptional hardware device id forwarded by doctl. Recorded on the session row as the device that performed the destroy.
More Information
See /v2/agents/sessions/{session_id} in the API reference for additional detail on responses, headers, parameters, and more.