Session Delete File
session_delete_fileReduce a session workspace's artifact count by deleting a single file, restoring access when the CODECALC_MAX_ARTIFACT_COUNT limit is exceeded.
Instructions
Delete one file (or symlink entry — never the directory or symlink's target) from a session workspace. This is the recovery path when a session is refused for being over CODECALC_MAX_ARTIFACT_COUNT: neither session_write_file (creates/overwrites, never removes) nor session_run/ execute_code (refused by the same cap) can shrink the count, so this is the only in-session way to get back under it short of session_stop discarding the whole workspace. Refuses runner-internal paths (the same ones session_artifacts excludes) and directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path inside the workspace to delete; path escapes (e.g. '../') are refused | |
| session_id | Yes | Id of the session workspace to delete from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||