---
title: "delfile"
description: "Deletes one existing workspace file."
---

```lua
delfile(path: string): ()
```

---

## Aliases

None.

---

## Arguments

<ParamField body="path" type="string" required>
  A UTF-8 path relative to the Byte workspace.
</ParamField>

---

## Returns

This function returns no values.

Missing paths and directories raise an error.

**Related types:** [Filesystem types & behavior](/reference/filesystem/types).

---

## Example

```lua
writefile("docs-example/remove.txt", "temporary")
delfile("docs-example/remove.txt")
```
