purge_sessions
Permanently deletes finished machine-created sessions in nightly housekeeping: archived scheduled runs and hidden sub-agent sessions past a cutoff, preserving chats, live runs, and Assistant thread.
Instructions
Permanently delete finished machine-created sessions. Two sweeps: archived scheduled runs older than the cutoff, and sub_agent/hidden sessions older than the cutoff (those are never archived, so age is the only condition). Never touches a chat, a live run, or the Assistant thread. Nightly housekeeping, not something to reach for when a list looks untidy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "purge_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| older_than_days | No | Delete archived runs older than this. Defaults to 7. |