Delete Compute Session
delete_compute_sessionDelete a SAS compute session to end its running work and discard its WORK tables and macro variables; the next code execution starts a fresh session.
Instructions
Request deletion of a SAS compute session.
Ending a session ends whatever runs in it, including a batch job.
Deleting the session that execute_sas_code reuses discards its WORK
tables and macro variables, like reset_compute_session; the next
call starts a new one. Find session ids with list_compute_sessions.
Only your own sessions are deleted. A session that belongs to another
user is refused unless all_users is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "delete_compute_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all_users | No | Allow ending another user's session. Only an administrator can do that, and it ends that person's work: pass it only when the person explicitly asks for it. | |
| session_id | Yes | Id of the compute session to delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||