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

> Deletes an existing regular file inside the workspace.

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

  ## Arguments

  <ParamField path={"path"} type={"string"} required>
    Path resolved inside the workspace after separator normalization and workspace-boundary checks. The target must exist and be a regular file; folders are not accepted.
  </ParamField>

  ## Example

  Delete an existing workspace file.

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

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