Delete a folder from the executor workspace (UNC delfolder)
delete-folderPermanently deletes a folder and its contents from the executor's workspace. This destructive operation cannot be undone.
Instructions
Delete a folder (and typically its contents) from the executor's workspace. 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 recursive on most executors; it cannot be undone. Requires the UNC function delfolder(path). The call is type-guarded and pcall-wrapped: if delfolder is missing you get { error = 'delfolder is not available in this executor.' }, and any failure (missing folder, 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 folder to delete within the executor workspace, e.g. 'data/snapshots'. | |
| 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. |