> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# delfile

> 删除 workspace 内已存在的 regular file。

<div className="real-function-page">
  ```lua theme={null}
  delfile(path: string)
  ```

  ## 参数

  <ParamField path={"path"} type={"string"} required>
    经过 separator normalization 和 workspace-boundary checks 后在 workspace 内解析的 path。目标必须存在并且是 regular file；不接受 folders。
  </ParamField>

  ## 示例

  删除已存在的 workspace file。

  ```lua theme={null}
  local path = "examples/temporary.txt"
  writefile(path, "temporary")

  delfile(path)
  print(isfile(path))
  ```
</div>
