> ## 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

> Xoa mot regular file dang ton tai ben trong workspace.

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

  ## Đối số

  <ParamField path={"path"} type={"string"} required>
    Path duoc resolve ben trong workspace sau separator normalization va workspace-boundary checks. Target phai ton tai va la regular file; folders khong duoc chap nhan.
  </ParamField>

  ## Ví dụ

  Xoa mot workspace file dang ton tai.

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

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