Delete a file from the executor workspace (UNC delfile)
delete-fileDeletes a single file from the executor workspace on the host machine, not the Roblox game. Destructive and irreversible; verify with file-exists before removal.
Instructions
Delete a single file from the executor's workspace folder. NOTE: this is executor-side file I/O — the connector runs INSIDE the executor, so the path is relative to the executor's workspace directory on the host machine, NOT the Roblox game. This is destructive and cannot be undone. Requires the UNC function delfile(path). The call is type-guarded and pcall-wrapped: if delfile is missing you get { error = 'delfile is not available in this executor.' }, and any failure (missing file, permission) returns { error = }. Returns { path, ok = true } or { error }. Signature: { path: string, threadContext: number?, timeoutMs: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Capabilities: executor filesystem. Produces: operation-receipt. Verify with: file-exists. Safety: MUTATING; writes executor workspace filesystem. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to delete within the executor workspace, e.g. 'logs/old.txt'. | |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |