user_sessions

Delete User Session

Soft delete a user session by setting its status to DELETED.

After the database delete completes, a best-effort RPC is sent to the daemon to terminate any running session process. The delete always succeeds regardless of daemon state.

Args: delete_worktree: If true, also delete the git worktree associated with this session on the user's machine.

Returns: 204 No Content on success 404 if session not found or already deleted

delete/api/v1/user-sessions/{user_session_id}

Path parameters

user_session_idstring required

Query parameters

delete_worktreeboolean

If true, also delete the git worktree associated with this session.

If true, also delete the git worktree associated with this session.

Response

Successful Response

Changes

No recorded changes to this endpoint across all 1 revision of this API.