Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Delete an agent session

Deletes a session and its events.

Deletes a session and its events. A session whose turn is running is refused with INVALID_STATE unless force is set, which interrupts it first.

Not available yet. Sylphx Agents is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session
  • Scope agents:sessions
  • Effect destructive — a successful call removes data; the CLI asks before it runs.
  • Collection agent_sessions
  • Query etag, allow_missing, validate_only, force

#Request

FieldTypeWhat it is
namestringThe name of the session to delete. Required.
etagstringDelete only if the current etag matches.
allow_missingboolSucceed when the session does not exist.
validate_onlyboolValidate without deleting anything.
forceboolInterrupt a running turn and delete; without it, a running session is refused with INVALID_STATE.

#Response

The call answers with an empty object.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X DELETE "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"