pydo.sessions.delete()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.sessions.delete(
session_urn="do:managed_agent_session:2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
)Description
Deletes the session and its policy. Succeeds without deleting anything when the session does not exist or you cannot delete it, so repeating a delete also succeeds. A malformed session_urn is rejected with 400.
Parameters
session_urnstring requiredURN of the session, for example
do:managed_agent_session:<uuid>.
Response Example
More Information
See /v2/action-gateway/sessions/{session_urn} in the API reference for additional detail on responses, headers, parameters, and more.